Linux notes

get linux boxes to show hostname on windows network

http://www.terminally-incoherent.com/blog/2007/10/03/access-linux-workstation-by-hostname-on-a-windows-network/

Once it is installed and running, edit /etc/samba/smb.conf and put following lines in somewhere in Global Settings section:

workgroup = your_workgtoup netbios name = your_hostname

Backuppc

linux video recording notes

installing chromeos

I was wondering why there was not an even amount of ram reported on linux.

Graphics is on the motherboard so it uses some memory.

Ran this:

dmesg | grep "Memory"
[    0.000000] Memory: 16069952K/16453324K available (8427K kernel code, 1285K rwdata, 3956K rodata, 1480K init, 1292K bss, 383372K reserved, 0K cma-reserved)
[    0.871218] [drm] Memory usable by graphics device = 2048M
cat /proc/meminfo
free -g
dmidecode --type memory

ram memory diags

dd command for two discs with different size partitions

# dd if=/dev/sda of=/tmp/mbrsda.bak bs=512 count=1

Now to restore the image to any sdb:

# dd if=/tmp/mbrsda.bak of=/dev/sdb bs=446 count=1

Next, backup entries of the extended partitions:

# sfdisk -d /dev/sda > /tmp/backup-sda.sfdisk

512 vs 446 Bytes

Use 446 bytes to overwrite or restore your /dev/XYZ MBR boot code only with the contents of $mbr.backup.file.

Use 512 bytes to overwrite or restore your /dev/XYZ the full MBR (which contains both boot code and the drive's partition table) with the contents of $mbr.backup.file.

sfdisk Command

The sfdisk command act as a partition table manipulator for Linux. You can use this tool to list partitions too:

# sfdisk -l /dev/sda

# sfdisk -lu /dev/sda

# sfdisk -ls /dev/sda

Sample outputs:

71669760
Disk /dev/sda: 8922 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+    104-    105-    838656   83  Linux
/dev/sda2        104+    235-    131-   1048576   82  Linux swap / Solaris
/dev/sda3        235+   8922-   8688-  69781504   83  Linux
/dev/sda4          0       -       0          0    0  Empty

Where,

-l : List the partitions of a device.

-s : List the size of a partition.

-u or -uS or -uB or -uC or -uM : Accept or report in units of sectors (blocks, cylinders, megabytes, respecpively). The default is cylinders, at least when the geometry is known.

view docs Apache

added these lines to apache directive for

/usr/share/doc

AddEncoding gzip gz 
<FilesMatch "\.gz$">
      ForceType text/plain
      Header set Content-Encoding: gzip
</FilesMatch>

remote

From the X11 app, open the terminal, and then access the remote host with:

  ssh -XC user@host

Then, when logged, simply run the command for the desired app, ex: firefox, nautilus, thunderbird, whatever…

You can even launch only the system (Ubuntu, Xubuntu, Mint, etc..) Main Menu, and interact with the remote system from there, without the need of a full graphical front-end. On a remote Linux Mint env, i simply run:

  mintmenu&

If you really need it, you can even start the remote graphical environment locally at your Mac's X11, simply running:

  ubuntu-session
  xubuntu-session
  etc... (depends of your remote environment)

Better than any VNC, even better than an X11VNC connection! Secured and compressed connection FTW.

mount drive - has repository from DVD set I bought in January 2017

deb [arch=amd64] file:///mnt/arch/repo/linuxmint serena main upstream import
deb [arch=amd64] file:///mnt/arch/repo/ubuntu xenial main restricted universe multiverse
deb [arch=amd64] file:///mnt/arch/repo/ubuntu xenial-updates main restricted universe multiverse
deb [arch=amd64] file:///mnt/arch/repo/ubuntu xenial-security main restricted universe multiverse

# deb file:///mnt/repo/repo/linuxmint serena main upstream import
# deb file:///mnt/repo/repo/ubuntu xenial main restricted universe multiverse
# deb file:///mnt/repo/repo/ubuntu xenial-updates main restricted universe multiverse
# deb file:///mnt/repo/repo/ubuntu xenial-security main restricted universe multiverse

11-29-17

Bought new M.2 drive for trackfile machine - making some notes here about setting linux up on ti

https://ubuntuforums.org/showthread.php?t=2377910

from:

Dell article

Modify the boot option to add “nvme_load=YES” and remove “quiet splash

grub nvme

https://ubuntuforums.org/showthread.php?t=2325056