Java Linux Machine Setup

Submitted by code_admin on Fri, 07/20/2018 - 13:22

Change timezone to London and reboot (preferences)

Setup SSH Server

  1. vi /etc/rcS.conf
  2. Find line for RUN_DEAMONS and add dropbear to end

Auto user login

  1. vi /etc/slim.conf
  2. Find line for default_user
  3. add line below:
  4. auto_login     yes

Grub 0 timer

  1. vi /boot/grub/menu.lst

Change timeout 8 to timeout 0

Samba connect to netdisk

  1. vi /etc/rcS.conf
  2. Find line for LOAD_MODULES and add cifs to end

Set up user and group for share

  1. adduser shareuser
  2. addgroup sharegroup
  3. addgroup Robert sharegroup
  4. id Robert

The last line checks this went ok

Create /home/Robert/network/robertsmedia.credentials as:

  1. username=**USER**
  2. password=**PASS**

Open terminal become root

  1. mkdir /home/Robert/network/robertsmedia
  2. tazpkg get-install smbfs
  3. modprobe cifs
  4. mount -t cifs //192.168.1.160/robertsmedia /home/Robert/network/robertsmedia -o credentials=/home/Robert/network/robertsmedia.credentials,uid=shareuser,gid=sharegroup

See this node to create a deamon (must be in run scripts)
https://code.metcarob.com/node/184

(Use command id -u USERNAME to get the id of the main user)

Add to file to automate on boot

  1. vi /home/Robert/.config/openbox/autostart.sh

Stick Monitor Resolution

run the following through an X console to find the output names:

  1. xrandr -q

Test (or reconstruct) this output

  1. xrandr --output VGA1 --mode 1920x1080 --output LVDS1 --off

change config files in
/etc/X11/xorg.conf.d

60-Device.conf -> Change identifier to InternalGFXCard

50-Monitor.conf Set Identifies to match what the output is from xrandr and set option ignore:

  1. Section "Monitor"
  2.         Identifier   "LVDS1"
  3.         VendorName   "InternalMon"
  4.         ModelName    "eeePC901Standard"
  5.         Option "Ignore" "true"
  6. EndSection
  7.  
  8. Section "Monitor"
  9.         Identifier   "VGA1"
  10.         VendorName   "Samsung"
  11.         ModelName    "Samsung 40inch TV"
  12.         Option "DPMS" "false"
  13. EndSection

70-Screen.conf

  1. Section "Screen"
  2.         Identifier "Screen0"
  3.         Device     "MainGFXCard"
  4.         Monitor    "VGA1"
  5.         SubSection "Display"
  6.                 Viewport   0 0
  7.                 Depth     24
  8.                 Modes   "1920x1080_60.0"
  9.         EndSubSection
  10. EndSection

10-ServerLayout.conf

  1. Section "ServerLayout"
  2.         Identifier     "X.org Configured"
  3.         Screen      0  "Screen0" 0 0
  4.         Option         "BlankTime" "0"
  5.         Option "StandbyTime" "0"
  6.         Option "SuspendTime" "0"
  7.         Option "OffTime" "0"        
  8. EndSection

Tags

RJM Article Type
Work Notes