VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: My Installation and Configuration of VL 7.1 Light (UPDATE)  (Read 319 times)

macondo

  • Vectorite
  • ***
  • Posts: 177
My Installation and Configuration of VL 7.1 Light (UPDATE)
« on: January 18, 2016, 07:48:31 am »

My installation  and configuration of VL 7.1 Light (UPDATE)

This is not a howto per se, it's just rambling, the way i do things that
make my life easier. I'm getting long in the tooth and
have little patience, so i don't need some of the things most users do. Take
this writing with a grain of salt, it's not carved on stone. 

My hardware: desktop with dual celeron and 4 gigs of RAM.

INSTALLATION

After introducing the CD you get a choice of  of installations:
Automatic or Advanced.

Automatic will solve your problems if you're a Windows refugee or a Linux
user who just needs a quick installation.
 
It will do everything for you: clean the hard drive, partition it (root and swap),
and assign Ext3 as your file system. It will use the whole hard drive.
Just sit back and enjoy, at the end, reboot and enjoy your shiny IceWM.
The devs did a great job.

I choose the Advanced option, i'm a distro-whore, so i like to install several distros
in addition to VL. Also i can choose the file system i like.

So i launch the app to partition the hd, give 20 gigs to root and 2 gigs
to swap, choose JFS as my file system (don't ask), in the boot
page, i pick NO ANIMATIONS, choose GRUB, and let it rip. When the
installation is done, i reboot and start configuring.

CONFIGURATION

In IceWM, i launch the terminal and as root, i update and upgrade:

Code: [Select]
# slapt-get -u && slapt-get --upgrade

Then i add some packages i use:

Code: [Select]
# slapt-get -i firefox xfe xchat scrot unclutter numlockx terminus-font
libreoffice jwm gmrun qterminal

After that, i remove some packages i don't need or seldom use:

Code: [Select]
# slapt-get --remove gnumeric abiword imagemagick cups wicd pidgin
mtpaint gkrellm spacefm irrsi openssh vim leafpad geany

Nano is my editor and wordprocessor, in case you wonder :)

I like my distro lean and mean. Speed is everything, the rest is just
fluff.

SUDO

As root i edit the file /etc/sudoers and add this line at the end of the
file:

Code: [Select]
macondo         ALL=NOPASSWD:ALL

(Replace 'macondo' with your username)

As ROOT edit /etc/inittab/ and leave it looking like this:

Code: [Select]
# Default runlevel. (Do not set to 0 or 6 !)
id:3:initdefault:

so i don't have to use the DM (display manager) and use 'startx'.
KISS - Keep It Simple, Stupid

FIREWALL

VL7.1 comes with the firewall (g)ufw.
To get this going:

Code: [Select]
# ufw enable

Read this: https://help.ubuntu.com/community/UFW

I add this to my .xinitrc:

Code: [Select]
sudo ufw enable &
setxkbmap es
firefox &
setxkbmap -option terminate:ctrl_alt_bksp
xsetroot -solid black
unclutter -idle 2 &
numlockx &

exec icewm

I edit my .bashrc and leave it looking like this:
Code: [Select]
.bashrc
# sourced by BASH everytime it start
## These should be set by /etc/profile
## But sometime, bash missed them. So here is the push
export PATH="/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/opt/bin:/usr/X11/bin:/usr/local/games:/usr/games"
# Set various environment variables
for SH in /etc/profile.d/*.sh; do
           . $SH
done
#use custom keymap
xmodmap ~/.Xmodmap

## Set fancy colors
eval `dircolors -b`

## Set this for your first choice
export BROWSER=firefox
export EDITOR=nano
export EXPLORER=xfe
#export NETWORK_EXPLORER=konqueror
export AUDIO_PLAYER=smplayer
export VIDEO_PLAYER=smplayer
export DISPLAY=$DISPLAY

# This line was appended by KDE
# Make sure our customised gtkrc file is loaded.
export GTK2_RC_FILES=$HOME/.gtkrc-2.0

#Aliases
alias slu="sudo slapt-get --update"
alias slU="sudo slapt-get --upgrade"
alias sli="sudo slapt-get --install"
alias slr="sudo slapt-get --remove"

First thing i do in the morning:
Code: [Select]
$ slu && slU

Now reboot, and come back to the console, type your username, password,
and startx and you're in.

Now i configure IceWM using this howto some nut wrote a while back:
http://forum.vectorlinux.com/index.php?topic=18710.0

And that's it, please correct any mistakes, I did this from memory.

macondo aka bobo cerealkiller Lou

PS: this was written with nano:

 My icewm after configuring it: no titlebar, taskbar on top
 
« Last Edit: January 26, 2016, 09:59:41 am by macondo »
Logged
VL 7.1 Light - jwm/icewm/ratpoison
"Sometimes a man finds his destiny on the road he took to avoid it"
SADE - Smooth Operator  https://www.youtube.com/watch?v=ZhijV9i5bXU

hata_ph

  • Packager
  • Vectorian
  • ****
  • Posts: 3283
  • -- Just being myself --
Re: My install and config of VL 7.1 Light
« Reply #1 on: January 19, 2016, 07:22:26 pm »

NICE :)
Logged

macondo

  • Vectorite
  • ***
  • Posts: 177
Re: My Installation and Configuration of VL 7.1 Light (UPDATE)
« Reply #2 on: January 26, 2016, 09:43:46 am »

The correct way to activate UFW as you boot:
Code: [Select]
# echo ufw enable >> /etc/rc.d/rc.local

You only have to this ONCE!

MOE-lnx has told me this so many times, I was afraid to ask him again for nth time for fear of he putting a contract on me :D
I found it in some obscure notebook where i had put it.
« Last Edit: February 04, 2016, 05:51:51 am by macondo »
Logged
VL 7.1 Light - jwm/icewm/ratpoison
"Sometimes a man finds his destiny on the road he took to avoid it"
SADE - Smooth Operator  https://www.youtube.com/watch?v=ZhijV9i5bXU

macondo

  • Vectorite
  • ***
  • Posts: 177
Re: My Installation and Configuration of VL 7.1 Light (UPDATE)
« Reply #3 on: February 04, 2016, 07:48:32 am »

This (according to grc.com) will render you invisible (Stealth) BUT, still you are susceptible to pinging. To avoid being pinged, edit the file  /etc/ufw/before.rules and leave it looking like this:

Code: [Select]
# ok icmp codes
-A ufw-before-input -p icmp --icmp-type destination-unreachable -j DROP
-A ufw-before-input -p icmp --icmp-type source-quench -j DROP
-A ufw-before-input -p icmp --icmp-type time-exceeded -j DROP
-A ufw-before-input -p icmp --icmp-type parameter-problem -j DROP
-A ufw-before-input -p icmp --icmp-type echo-request -j DROP

Go back to www.grc.com and take the test again.
To take the test:

Click on ShielsUp > ShieldsUp (under Hot Spots > Proceed > All Service Ports

If all the ports are neon green you are in Stealth (you're invisible in the internet) the paragraph should say:


"Your system has achieved a perfect "TruStealth" rating. Not a single packet — solicited or otherwise — was received from your system as a result of our security probing tests. Your system ignored and refused to reply to repeated Pings (ICMP Echo Requests). From the standpoint of the passing probes of any hacker, this machine does not exist on the Internet. Some questionable personal security systems expose their users by attempting to "counter-probe the prober", thus revealing themselves. But your system wisely remained silent in every way. Very nice."

Good luck,
macondo aka bobo cerealkiller Lou

 



« Last Edit: February 04, 2016, 08:27:16 am by macondo »
Logged
VL 7.1 Light - jwm/icewm/ratpoison
"Sometimes a man finds his destiny on the road he took to avoid it"
SADE - Smooth Operator  https://www.youtube.com/watch?v=ZhijV9i5bXU