Help with Installing linux kernel from source!

I am using Ubuntu Desktop and I am new to linux kernel development. I am following the documentation https://www.kernel.org/doc/html/latest/admin-guide/README.html#compiling-the-kernel And I am stuck at the “Compiling the kernel” section.

As far as I know Ubuntu uses GRUB by default but the instruction given are for LILO. So, I do not know what am I supposed to do next after successfully running the “sudo make O=/home/name/build/kernel modules_install install” command here https://www.kernel.org/doc/html/latest/admin-guide/README.html#build-directory-for-the-kernel

Can someone explain in simple terms as I am relatively new to kernel development that what do I need to do next. Thank you

My ubuntu version is 14.04.4 and i’m the new one in ubuntu. please help me to solve that problem

Reading package lists… Done Building dependency tree
Reading state information… Done Package git-core is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package ‘git-core’ has no installation candidate

My ubuntu version is 14.04.4 and i’m the new one in ubuntu. please help me to solve that problem.

sniffex.c code help

This is a program that works to sniff devices using pcap. The link to the code is here: sniffex

I have some questions that I would like to ask and I have attempted them and want to know if they are right.

Question 1

When running sniffex without root privileges what function causes the error and what is the value returned from that function?

A. pcap_lookupdev(), returns 0

Question 2

What function must you call to prevent the kernel from building IP packets?

A. pcap_datalink()

Thanks for reading, I hope I can get some help if these are right or not.

Need help to make and optimize a dense forest in Unity with bird view camera

I’m currently developing a RTS game that has a bird view camera operating while playing the game. One of the core aspects of my game are trees.

So in the previous days i was playing with trees in Unity.

  • First i played with Unity Tree Creator however later i realized it is broken since 2018.3, and devs said it wont be fixed because it will be a community developed package in the future
  • Then i downloaded assets from the store that are said to be highly optimized trees, however they are mostly for “3rd person camera projects” thus having around 7-14k triangles.

After these experiences, i decided to export a tree prefab to fbx, then manually decrease the triangle count to around 2.5k in 3ds max, then reimport it to Unity. With this technique i was able to produce quite good results, but still not very satisfied with it.

My camera view, and my “dense forest” 180-300fps… and only like 3-4 shadows enter image description here For the above picture i used a Tree with 2 LOD and one billboard(BB).

After playing with this i realized i can sure do better especially with playing LOD numbers, material optimization, and with the default tree trinagle optimization.

However the problem is i can’t model pine trees that satisfy my needs in 3ds max. So i started looking into SpeedTree documentation, however it seems a bit too professional for my needs(All the tutorials also make trees with like 20k poly/tri).

So regarding this story. I would like to ask the following question + a bonus one about LOD:

  • Can you model quality trees with SpeedTree for Unity that have like around 1k-2k triangles, or SpeedTree is for high quality/high poly trees, they algorythms won’t work with lower polygon count etc? (I heared they have a simplify modifier is it good? like make a 7k triangle tree then cut it to 1k-2k)
  • I’m thinking about using 4-5 LOD and a BB for smooth transition. In my picture i use 2 LOD and a BB and sometimes when moving the camera fast, transitions are not as smooth as i want it to be. So i would like to rather have more lower detailed meshes before trasitioning to BB. So does having a 4-5 LOD-s a common practice or any better ides for this?