Changes

Jump to: navigation, search

Lenovo Ideapad 320-14IAP

349 bytes removed, 1 year ago
m
Dropbox tips
(chroot) # ##i##cp /etc/portage/make.conf.example /etc/portage/make.conf
(chroot) # ##i##nano -w /etc/portage/make.conf
}}
Modify make.conf according to:
 
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
L10N="${LINGUAS}"
USE="ruby_targets_ruby24"
}}
When make.conf is taken care of, I set up my root account like so:
{{console|body=
(chroot) # ##i##nano /root/.bashrc
}}
.bashrc for root user should contain something like:
 
export NUMCPUS=$(nproc)
export NUMCPUSPLUSONE=$(( NUMCPUS + 1 ))
export MAKEOPTS="-j${NUMCPUSPLUSONE} -l${NUMCPUS}"
export EMERGE_DEFAULT_OPTS="--jobs=${NUMCPUSPLUSONE} --load-average=${NUMCPUS}"
}}
This .bashrc should then be copied to your local user as well, along with the .bash_profile after copying it to the root user. Especially if you intend to run emerge or such admin tasks from your own user.
{{console|body=
{{console|body=
(chroot) # ##i##nano /etc/conf.d/hwclock
}}
local # changed from UTC
clock_hctosys="YES"
clock_systohc="YES"
{{console|body=
(chroot) # ##i##rc-service hwclock restart
(chroot) # ##i##rc-update add hwclock boot
(chroot) # ##i##ego sync
(chroot) # ##i##emerge -quDN --with-bdeps=y @world
}}
 
Install kernel and GRUB
{{console|body=
(chroot) # ##i##emerge -q debian-sources boot-update
(chroot) # ##i##grub-install --target=i386-pc --no-floppy --debug /dev/sda
(chroot) # ##i##cp /usr/share/doc/wpa_supplicant_2.6-r1/wpa_supplicant.conf /etc/wpa_supplicant/
(chroot) # ##i##nano /etc/wpa_supplicant/wpa_supplicant.conf
}}
update_config=1 #this may be a bad idea, but it's supposed to update config and save settings automatically
country=SV
autoscan=periodic:60
 --- # add this at the end if you know the SSID of an open WiFi network without password, such as school or café.
network={
ssid="Wifi"
key_mgmt=NONE
}
{{console|body=
(chroot) # ##i##nano /etc/conf.d/net
}}
modules="dhcp wpa_supplicant"
wpa_supplicant_eth0="-iwlwifi"
ifplugd_enp0s25="..."
config_enp0s25="dhcp"
{{console|body=
(chroot) # ##i##rc-update add dhcpcd default
(chroot) # ##i##rc-update add wpa_supplicant default
(chroot) # ##i##nano -w /etc/conf.d/hostname
}}
hostname="laptop"
{{console|body=
(chroot) # ##i##nano -w /etc/hosts
127.0.0.1 localhost KVISlaptop KVISlaptop.local
}}
127.0.0.1 localhost KVISlaptop KVISlaptop.local
Create my own user:
}}
Network Time Protocol(I get sync errors at startup for some reason, may need tweaking):
{{console|body=
(chroot) # ##i##emerge net-misc/ntp
(chroot) # ##i##nano /etc/conf.d/ntp-client
}}
NTPCLIENT-OPTS="-s -b -u \
0.pool.ntp.org \
2.pool.ntp.org \
3.pool.ntp.org"
{{console|body=
(chroot) # ##i##rc-update add ntp-client default
(chroot) # ##i##rc
(chroot) # ##i##emerge -q app-misc/screen sudo htop app-admin/sysklogd sys-process/cronie sys-fs/dosfstools app-admin/logrotate sys-apps/{usbutils,hwinfo} app-portage/{eix,gentoolkit,euses}
(chroot) # ##i##nano /etc/sudoers
}}
%wheel ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: /usr/bin/wpa_gui
{{console|body=
(chroot) # ##i##rc-update add sysklogd default
(chroot) # ##i##rc-update add cronie default
(chroot) # ##i##emerge -quDN --with-bdeps=y @world xorg-x11
(chroot) # ##i##nano /etc/X11/xorg.conf
}} ---#These xorg.conf settings were based on a different laptop than the Ideapad 320-14IAP and I have not tried them yet. Will update if I do get around to trying it, or you can let me know if something should be different. 
Section "Module"
Load "dri"
Section "Device"
Identifier "intelVGA"
---#remove: Driver "intel" # using the intel driver prevents X/SDDM from starting
Option "NoAccel" "False"
Option "DRI" "True"
---#remove: Option "AccelMethod" "uxa" #using this option causes massive lagon my other laptop even though it is recommended
EndSection
Section "Screen"
Option "Composite" "On"
EndSection
}}
Install Openbox and Compton:
SDDM and stuff
{{console|body=
(chroot) # ##i##echo "app-text/xmlto text" > /etc/portage/package.use/xmlto
(chroot) # ##i##emerge -quDN media-libs/alsa-lib sys-auth/consolekit dbus sys-fs/eudev net-print/cups x11-misc/sddm alsa-tools
(chroot) # ##i##nano /etc/modprobe.d/alsa.conf
}}--- # Make HDMI second card (not default output)so that you still have sound when external screen etc connected
options snd cards_limit=2
options snd-hda-intel id=PCH index=0
options snd-hda-intel id=HDMI index=1
{{console|body=
(chroot) # ##i##rc-update add dbus default
(chroot) # ##i##rc-update add alsasound boot
(chroot) # ##i##rc-update add consolekit default
(chroot) # ##i##nano /etc/udev/rules.d/10-usb-drives.rules
}}(replace --- with # to comment away that row, it messes with the wiki to put it first)--- Auto-mount USB drives when you plug them in and unmount when you remove
!/bin/sh
--- # start at sdb to ignore the system hard drive
KERNEL!="sd[b-z]*", GOTO="exit"
ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="exit"
--- # import some useful filesystem info as variables
IMPORT{program}="/sbin/blkid -o udev -p %N"
--- # get the label if present, otherwise assign one based on device/partition
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="flash_drive_%k"
--- # create the dir in /media and symlink it to /mnt
ACTION=="add", RUN+="/bin/mkdir -p '/media/%E{dir_name}'"
--- # filesystem-specific mount options (777/666 dir/file perms for vfat)
ACTION=="add",ENV{mount_options_vfat}="gid=100,dmask=000,fmask=111,utf8,flush,rw,noatime,users"
--- # add device to /etc/fstab
ACTION=="add", ENV{ID_FS_TYPE}=="vfat", RUN+="/bin/sed -i '$a\/dev/%k /media/%E{dir_name} vfat %E{mount_options_vfat} 0 0' /etc/fstab"
--- # mount device
ACTION=="add", ENV{ID_FS_TYPE}=="vfat", RUN+="/bin/mount -t auto -o %E{mount_options_vfat} /dev/%k '/media/%E{dir_name}'"
clean up after device removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l '/media/%E{dir_name}'", RUN+="/bin/rmdir '/media/%E{dir_name}'"
ACTION=="remove", ENV{ID_FS_TYPE}!="", RUN+="/bin/sed -i '/\/dev\/%k /d' /etc/fstab"
--- # exit
LABEL="exit"
 
Restart udev to load rules:
{{console|body=
(chroot) # ##i##/etc/init.d/udev --nodeps restart
(chroot) # ##i##sddm --example-config > /etc/sddm.conf
(chroot) # ##i##gpasswd -a sddm video
(chroot) # ##i##nano /etc/conf.d/xdm
}}
DISPLAYMANAGER="sddm"
{{console|body=
(chroot) # ##i##rc-update add xdm default
(chroot) # ##i##rc
{{console|body=
(chroot) # ##i##nano /etc/xdg/openbox/autostart
}}
nitrogen --restore &
compton -b -c -r 13 -o 0.39 -l 0 -t 0 -m 0.91 -G --paint-on-overlay --backend xrender --vsync drm &
 
{{console|body=
(chroot) # ##i##nano /etc/xdg/openbox/rc.xml
}}
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
</action>
</keybind>
 
Compton:
{{console|body=
(chroot) # ##i##emerge -q x11-misc/compton
(chroot) # ##i##emerge -q x11-misc/nitrogen
(chroot) # ##i##emerge -q tilda xterm
(chroot) # ##i##nano /home/username/.Xresources
}}---#Set Xterm to have default font inconsolata and black background.
xterm*faceName: Inconsolata
xterm*faceSize: 13
xterm*loginshell: true
---! # DOS-box colours...
xterm*foreground: rgb:a8/a8/a8
xterm*background: rgb:00/00/00
xterm*color14: rgb:54/fc/fc
xterm*color15: rgb:fc/fc/fc
 ---! # stop output to terminal from jumping down to bottom of scroll again
xterm*scrollTtyOutput: false
}}
Look and feel like icons and screensavers:
(chroot) # ##i##cp /usr/share/icons/breeze-dark/* .
(chroot) # ##i##nano index.theme
}}
[Icon Theme]
Name=MyThemeName
Comment=This is my theme
Inherits=Breeze Dark
{{console|body=
(chroot) # ##i##ln -s #link some icons that you like
}}
 
{{console|body=
(chroot) # ##i##emerge -q tint2
(chroot) # ##i##emerge -q volumeicon
Here are some applications that I have been using in this setup:
Dropbox
{{console|body=
(chroot) # ##i##nano /etc/portage/make.conf
}}
RUBY_TARGETS="ruby24"
{{console|body=
(chroot) # ##i##emerge -q dropbox thunar-dropbox
(chroot) # ##i##nano /etc/conf.d/dropbox
}}
DROPBOX_USERS="username"
{{console|body=
(chroot) # ##i##rc-update add dropbox default
(chroot) # ##i##dropbox start
wiki-users
21
edits

Navigation menu