Service Status

All services are running as normal.

IPv4 access was restored from provider.

IPv6 access is now restored for Telnet, SSH (BBS and File Areas), and BinkP.

There is currently no major planned downtime.

archlinux

Home/Tag:archlinux

RemixOS Single Disk MBR Install (No Dual Boot)

This information is to help you install RemixOS directly on a hard disk, using (Legacy) BIOS boot method and MBR style partition table. Remix OS will utilize the entire hard disk and will not limit you to a 4GB /data partition. I will be using 2 USB thumb drives to get this working, none of which you will need to keep around when done.

Grab a copy of the 32- or 64-bit ISO. Just down the one you want here: http://www.jide.com/remixos-for-pc. It’s about 3/4 down the page.

Get a copy of Archlinux. We will use this as a live distro to modify the hard drive partition tables and format the disks as the RemixOS installer is very limited and does not offer the setup we need. You can find this here: https://www.archlinux.org/download/ choose any local mirror to you and get the ISO. Archlinux recently went to only 64-bit. You might need a different linux distro if your target machine is only 32-bit.

Open the zip file with WinRAR, 7Zip, WinZip. The default zip handler in Windows Explorer will probably work just as well. Copy out the RemixOS ISO file to your desktop or another folder. Do the same with the Archlinux ISO file.

I prefer to use Rufus to write ISO files to USB. You can grab Rufus here: http://rufus.akeo.ie/. Get the portable version, there is no need to install this utility.

Plug in a USB drive. Start Rufus with Admin Rights. Choose your USB drive on the top drop down, for the partition scheme choose: “MBR partition scheme for BIOS or UEFI”. Near the bottom click the CD-ROM Drive looking icon and choose the RemixOS ISO file you downloaded earlier. Uncheck the “Create extended label and icon files” box.

Click Start.

After Rufus is done set this RemixOS USB drive to the side. Do the same for the Archlinux ISO.

First we will boot using the Archlinux USB.

You sould be dropped to a command line once Archlinux is fully booted. I will use /dev/sda as our disk, first (primary) SATA drive in the system.

Wipe our primary hard disk:

gdisk /dev/sda `Choose Expert Options then Zap the table. You will confirm and then booted back to the console.

Create MBR partition:

fdisk /dev/sda `Create new partition, type (default) linux. Full size. Set flag bootable as well. Use the help screen.

Format partition:

mkfs.ext4 /dev/sda1

Mount the partition:

mount /dev/sda1 /mnt

Install GRUB bootloader:

grub-install --root-directory=/mnt /dev/sda

Edit grub.cfg file:

cd /mnt/boot/grub nano grub.cfg `grub.cfg file: `-------------------------- set default=0 set timeout=3 set gfxmode=800x600 terminal_output gfxterm menuentry 'Remix OS' --class android-x86 { search --file --no-floppy --set=root /RemixOS/kernel linux /RemixOS/kernel root=/dev/sda1 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive SERIAL=random DATA=/data initrd /RemixOS/initrd.img } `-------------------------- `Change the androidboot.hardware=remix_x86_64 to androidboot.hardware=remix_x86 if your using 32-bit.

Save the file. Unmount the RemixOS disk and poweroff.

cd / umount /mnt poweroff

Put RemixOS USB into port remove Archlinux USB and power on computer.

Boot from RemixOS USB. On RemixOS Boot Menu hit [TAB] on “Resident Mode” so you can edit the boot parameters below the menu. Do not remove anything just append to the end of the line: INSTALL=1

So it looks like: …SRC= DATA= CREATE_DATA_IMG=1 INSTALL=1

Hit Enter to boot with the modified line.

Select your partition to install RemixOS on (sda1). When asked to format say “Do not format”. Do you want to install Boot Loader? SKIP! Do you want to install /system as read-write? YES

When asked to start RemixOS or Reboot. Choose reboot. Remove all USB drives.

You should get the boot menu with RemixOS and should be good.

By |May 3rd, 2017|0 Comments

ArchLinux + Cinnamon + More

Single Encrypted SSD Install

' Create a boot partition (sda1) (set boot flag) 100MB, data partition (sda2). $ gdisk /dev/sda $ mkfs -t ext4 /dev/sda1 ' Encryption stuff $ cryptsetup -y -v luksFormat /dev/sda2 $ cryptsetup open /dev/sda2 cryptroot $ mkfs -t ext4 /dev/mapper/cryptroot ' Mount the partitions to our future chroot $ mount -t ext4 /dev/mapper/cryptroot /mnt $ mkdir /mnt/boot $ mount -t ext4 /dev/sda1 /mnt/boot

We can now install the base packages and a few other things

' Install base packages $ pacstrap /mnt base base-devel syslinux gdisk ' Generate our base fstab file $ genfstab -p /mnt >> /mnt/etc/fstab ' Change into new root directory $ arch-chroot /mnt

Now we can setup the system before the first reboot without the live cd/usb

' Set the hostname $ echo computer_name > /etc/hostname ' Set the time zone $ ln -s /usr/share/zoneinfo/zone/subzone /etc/localtime ' Edit the locale file and uncomment relevant locales $ nano /etc/locale.gen ' Generate the uncommented locales from above $ locale-gen ' Set your locale preference $ echo LANG=your_locale > /etc/locale.conf ' Add encrypt hook to mkinitcpio: HOOKS="... encrypt ... filesystems ..." $ nano /etc/mkinitcpio.conf ' Generate the initial RAM disk $ mkinitcpio -p linux ' Set the root password $ passwd ' Install some more packages $ pacman -S networkmanager zip unzip unrar patch make openssh gcc fuse nvidia nvidia-utils ' Enable NetworkManager in systemd $ systemctl enable NetworkManager ' Install the boot loader $ syslinux-install_update -i -a -m ' Edit the syslinux boot loader (fix root stuff, set noop io scheduler) ' APPEND elevator=noop cryptdevice=/dev/sda2:cryptroot:allow-discards root=/dev/mapper/cryptroot rw $ nano /boot/syslinux/syslinux.cfg ' Edit the fstab file, change root mount to use noatime and discard options ' Setup /tmp on tempfs add line: tmpfs /tmp tmpfs nodev,nosuid,size=2G 0 0 $ nano /etc/fstab ' Reboot the machine $ reboot

After a clean reboot you should get the Syslinux Boot Loader and then booted into Archlinux, asking for the encryption key

' Login as root ' Check networking $ ip addr $ ping 8.8.8.8 ' Edit pacman configuration uncomment multilib repo $ nano /etc/pacman.conf ' Update pacman databases $ pacman -Syu ' Lets get more packages and cinnamon now $ pacman -S cinnamon playonlinux firefox xorg-xinit vim gvfs gvfs-smb wget lib32-libldap gnome-terminal gnome-keyring ' Edit some files to fix a few things and setup environment ' fuse.conf uncomment only two configuration values $ nano /etc/fuse.conf ' Edit which users/groups can sudo $ visudo ' Create a local non-root user $ useradd -g users -G disk lp wheel games dbus network video audio optical floppy storage power -m zharvek ' Set a password for that user $ passwd zharvek

Lets reboot again and login as our new user, you probably don’t have to reboot here but I do

' Login as non-root user ' Copy xinitrc to profile $ cp /etc/X11/xinit/xinitrc ~/.xinitrc ' Edit .xinitrc file to set cinnamon as desktop environment: exec cinnamon-session $ nano ~/.xinitrc ' I like to change the font engines and stuff before I load the desktop first $ cd /tmp $ wget https://aur.archlinux.org/cgit/aur.git/snapshot/freetype2-ubuntu.tar.gz $ wget https://aur.archlinux.org/cgit/aur.git/snapshot/fontconfig-ubuntu.tar.gz $ wget https://aur.archlinux.org/cgit/aur.git/snapshot/ttf-ms-fonts.tar.gz ' Lets extract these packages $ tar zxf freetype2-ubuntu.tar.gz $ tar zxf fontconfig-ubuntu.tar.gz $ tar zxf ttf-ms-fonts.tar.gz ' Lets build these packages $ cd freetype2-ubuntu $ makepkg $ sudo pacman -U freetype2-ubuntu...filename $ cd ../fontconfig-ubuntu $ makepkg $ sudo pacman -U fontconfig-ubuntu...filename $ cd ../ttf-ms-fonts $ makepkg $ sudo pacman -U ttf-ms-fonts...filename ' Change back to home $ cd ~ ' Start the desktop environment cinnamon $ startx

We can then get some games going for instance

' Create a games folder, I like putting it in a root area to be clean and easy $ sudo mkdir /games ' We need to give file permissions to the folder $ sudo chmod 775 /games $ sudo chown root:games /games ' You should be able to write to that folder now (your in the games group right?) ' Copy WoW to the games folder ' Lets setup a wine prefix for WoW $ playonlinux ' Download latest version of wine and wine-staging both x64 (Battle.net bombs on staging, game runs best on staging) ' Error: "This application failed to start because it could not find or load the Qt platform plugin "windows"." ' You will get this error if your wine prefixes are NOT Windows XP. ' You will get this error if your running the "Battle.net" prefix with a -staging version of WINE! ' Wine bug confirmed: https://bugs.winehq.org/show_bug.cgi?id=39985 ' Create two new prefixes, "Battle.net" and "Warcraft" ' Run winecfg on the "Warcraft" prefix ' Set CSMT enabled on "Warcraft" prefix ' Disable the d3d11 library on "Warcraft" prefix ' Run winecfg on "Battle.net" prefix ' Disable the dbghelp library on "Battle.net" prefix (answer yes to important question) ' Run 'World of Warcraft Launcher.exe' in the "Battle.net" prefix to allow updates and such ' Run 'Wow-64.exe' in the "Warcraft" prefix to play game with CSMT enabled. ' Setup scripts to do this for both programs. Using WINEARCH=win64 and WINEPREFIX= to prefixes --- Game Start Script --- #!/bin/bash WINEDEBUG=-all WINEARCH=win64 force_s3tc_enable=true __GL_THREADED_OPTIMIZATIONS=1 WINEPREFIX=~/.PlayOnLinux/wineprefix/Warcraft /home/zharvek/.PlayOnLinux/wine/linux-amd64/-staging/bin/wine /games/World\ of\ Warcraft/Wow-64.exe --- Game End Script --- --- Battle.net Start Script --- #!/bin/bash WINEDEBUG=-all WINEARCH=win64 WINEPREFIX=~/.PlayOnLinux/wineprefix/Battle.net /home/zharvek/.PlayOnLinux/wine/linux-amd64//bin/wine /games/World\ of\ Warcraft/World\ of\ Warcraft\ Launcher.exe --- Battle.net End Script ---

I install a few more applications

' Text editor, archive manager, stuff... $ sudo pacman -S gedit file-roller ttf-liberation quodlibet gimp redshift freerdp remmina gtk-engine-murrine gtk-theme-arc

Tweak some settings

' Firefox first ' Open options from menu button, click Content on left. ' Default Font: Times New Roman; 16 ' Proportional: Serif; 16 ' Serif: Times New Roman ' Sans-serif: Arial ' Monospace: Courier New; 13 ' Add your own addons, uBlock Origin, signin to Sync if you use, config custom sync server if you use ' Tweak the console ' I prefer gray text on black background, size around 100x40. ' Edit bash profile to create tmpfs firefox profile directory $ nano ~/.bash_profile ' Add line: mkdir -p /tmp/profile ' Make a symbolic link to tmpfs profile directory from current profile $ cd ~/.cache/mozilla/firefox $ ln -s /tmp/profile ulw90aed.default (use profile folder) ' Install CK Kernel ' Install CK Repo ' Use http://repo-ck.com/ information $ sudo nano /etc/pacman.conf ' Update pacman cache $ sudo pacman -Syy ' Check your board type and install (also choose nvidia driver) ' https://wiki.archlinux.org/index.php/Repo-ck $ sudo pacman -S ck-ivybridge ' Update syslinux (boot loader) ' LABEL arch-ck ' MENU LABEL Arch Linux CK ' LINUX ../vmlinuz-linux-ck ' APPEND elevator=bfq cryptdevice=/dev/sda2:cryptroot:allow-discards root=/dev/mapper/cryptroot rw ' INITRD ../initramfs-linux-ck.img ' Check default kernel ' DEFAULT arch-ck

Remove non-CK kernel

' Remove old kernel to save space on /boot $ sudo pacman -R linux nvidia
By |January 13th, 2016|0 Comments

ArchLinux on OVH Dedicated Server

OVH offers (at the moment) two ArchLinux distributions. One is not working as of this writting and the other is fairly old, and has a mix of initd and systemd parts. The partition wizard for the control panel is not great either.

I wanted to install a clean ArchLinux base and was looking around how to do it easily and correctly from the offered rescue-cd bootable they offer which happens to be a debian variant.

I found the following site: http://guillaumejcharmes.blogspot.com/2012/12/up-to-date-arch-linux-kernel-with.html.

Here are the important parts:

> gdisk /dev/sda
> mkfs -t ext4 /dev/sda1

> mount /dev/sda1 /mnt
> mkdir /mnt/tmp
> cd /mnt/tmp

> wget http://tokland.googlecode.com/svn/trunk/archlinux/arch-bootstrap.sh
> sh arch-bootstrap.sh -a x86_64 /mnt
> wget -O /mnt/tmp/havegen.tar.xz https://www.archlinux.org/packages/community/x86_64/haveged/download/

> mount -o bind /dev /mnt/dev
> mount -o bind /dev/pts /mnt/dev/pts
> mount -t proc /prorc /mnt/proc
> mount -t sysfs /sys /mnt/sys
> chroot /mnt

> cd /
> tar xJf /tmp/havegen.tar.xz
> havegen -w 1024

> pacman-key –init
> pacman-key –populate

> pacman -S base base-devel syslinux gdisk openssh sudo cmake
> gensftab / > /etc/fstab

#
# Create your hostname file: /etc/hostname containing the hostname of the system.
#

> nano /etc/locale.gen
> locale-gen
> ln -s /usr/share/timeinfo/America/New_York /etc/localtime

> mkinitcpio -p linux

> syslinux-install_update -i -a -m

> cp /etc/netctl/examples/ /etc/netctl
> netctl enable

> systemctl enable sshd.socket

#
# Modify /etc/systemd/system/sockets.target.wants/sshd.socket to change the port SSHD listens on.
#
By |July 12th, 2013|0 Comments
Load More Posts