当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 420 篇帖子 ]  前往页数 上一页  1 ... 22, 23, 24, 25, 26, 27, 28  下一页
作者 内容
361 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-03-13 15:37 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
五、
1、nvidia驱动安装(独显用户请进)
先在bios里把集显禁掉如果你是双显卡(不然发热严重!)
我的thinkpad T430 是开机狂按F1然后进入bios按方向键选择config—》Display->Graphics Device:Discrete Grap

OS Detection for NVIDIA Optimus:Disabled 按F10(Save and Exit)根据自己的bios视情况而定
在软件源右侧的附加驱动中选择313版本安装
(闭源驱动比较好当然你也可以选择.run的驱动
下面提供.run安装教程:
下载好后放在主目录下改名qd.run 然后把开源驱动加入黑名单中: 打开终端 sudo /etc/modprobe.d/blacklist.conf 在打开文件末尾新建一行加入:
blacklist nouveau保存并关闭 重启
进不了桌面? 显示 run in low-graphics mode .....?
ctrl+alt+F1看有没有XX login即输入你的账户名称
没有?按几下回车就有了 然后password是输入密码 输完敲回车 继续输入sudo start lightdm 输便密码就进去了(当然其实进不去最好了输入密码敲回车后直接输入sudo sh qd.run 然后好像基本上都选yes除了开头那个好像是no反正你看着如果开头那个选yes就不能安了就选no 后面的反正都是yes )对了英伟达公司的闭源驱动比开源驱动好 ATI的开源驱动比闭源的好)
(如果你安.run文件后)
安装完后重启后找到
NVIDIA X server Settings ->X Server Display Configuration->Save to X Configuration File ->Browse 最上方选择 / 然后在左边找到etc双击,找到X11双击,最下面输入xorg.conf点击保存
打开终端输入sudo gedit /etc/X11/xorg.conf
找到Section "Device"在EndSection前添加:
Option "NoLogo"
Option "RegistryDwords" "EnableBrightnessControl=1"
(注:开启亮度调节)
注意:
最左侧对齐(新加的命令和之前的左对齐)!不然会导致
用wine 模拟photoshop CS4时崩溃(一运行就注销)
Option "NoLogo" "True" 中true是多余的添加后好像也会导致崩溃
-----------------------------------------------------------------------------------------------------------------------------------------------------
调整分辨率(不然关机很难看)
原文地址:http://idyllictux.wordpress.com/2010/04/26/lucidubuntu-10-04-high-resolution-plymouth-virtual-terminal-for-atinvidia-cards-with-proprietaryrestricted-driver/
现简述解决过程:
1. 确认grub和plymouth的系统配置文件是原始状态,没有应用过其它的修改方案。
2. 安装v86d和hwinfo包,下面我们要用到:
代码:
sudo apt-get install v86d hwinfo

3. 查看自己显卡支持的分辨率:
代码:
sudo hwinfo --framebuffer

引用:
> hal.1: read hal dataprocess 2597: arguments to dbus_move_error() were incorrect, assertion "(dest) == NULL || !dbus_error_is_set ((dest))" failed in file ../../dbus/dbus-errors.c line 282.
This is normally a bug in some application using the D-Bus library.
libhal.c 3483 : Error unsubscribing to signals, error=The name org.freedesktop.Hal was not provided by any .service files
02: None 00.0: 11001 VESA Framebuffer
[Created at bios.464]
Unique ID: rdCR.gPBMypaP+07
Hardware Class: framebuffer
Model: "NVIDIA GeForce
"
Vendor: "NVIDIA Corporation"
Device: "NVIDIA GeForce
"
SubVendor: "NVIDIA"
SubDevice:
Revision: "Chip Rev"
Memory Size: 14 MB
Memory Range: 0xf1000000-0xf1dfffff (rw)
Mode 0x0300: 640x400 (+640), 8 bits
Mode 0x0301: 640x480 (+640), 8 bits
Mode 0x0303: 800x600 (+800), 8 bits
Mode 0x0305: 1024x768 (+1024), 8 bits
Mode 0x0307: 1280x1024 (+1280), 8 bits
Mode 0x030e: 320x200 (+640), 16 bits
Mode 0x030f: 320x200 (+1280), 24 bits
Mode 0x0311: 640x480 (+1280), 16 bits
Mode 0x0312: 640x480 (+2560), 24 bits
Mode 0x0314: 800x600 (+1600), 16 bits
Mode 0x0315: 800x600 (+3200), 24 bits
Mode 0x0317: 1024x768 (+2048), 16 bits
Mode 0x0318: 1024x768 (+4096), 24 bits
Mode 0x031a: 1280x1024 (+2560), 16 bits
Mode 0x031b: 1280x1024 (+5120), 24 bits
Mode 0x0330: 320x200 (+320), 8 bits
Mode 0x0331: 320x400 (+320), 8 bits
Mode 0x0332: 320x400 (+640), 16 bits
Mode 0x0333: 320x400 (+1280), 24 bits
Mode 0x0334: 320x240 (+320), 8 bits
Mode 0x0335: 320x240 (+640), 16 bits
Mode 0x0336: 320x240 (+1280), 24 bits
Mode 0x033d: 640x400 (+1280), 16 bits
Mode 0x033e: 640x400 (+2560), 24 bits
Mode 0x0345: 1600x1200 (+1600), 8 bits
Mode 0x0346: 1600x1200 (+3200), 16 bits
Mode 0x034a: 1600x1200 (+6400), 24 bits
Mode 0x034b: 1366x768 (+1368), 8 bits
Mode 0x034c: 1366x768 (+2736), 16 bits
Mode 0x034d: 1366x768 (+5472), 24 bits
Mode 0x0360: 1280x800 (+1280), 8 bits
Mode 0x0361: 1280x800 (+5120), 24 bits
Mode 0x0362: 768x480 (+768), 8 bits
Mode 0x0363: 848x480 (+3392), 24 bits
Config Status: cfg=new, avail=yes, need=no, active=unknown

4. 修改/etc/default/grub文件,使用uvesafb的framebuffer来启动
代码:
sudo gedit /etc/default/grub

把下面的两行
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_GFXMODE=640×480

修改为:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1366×768-24,mtrr=3,scroll=ywrap"

GRUB_GFXMODE=1366×768

5. 修改/etc/initramfs-tools/modules文件,
代码:
sudo gedit /etc/initramfs-tools/modules

添加下面这行:
uvesafb mode_option=1366×768-24 mtrr=3 scroll=ywrap

6. 运行下面的命令,启用framebuffer:
代码:
echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash

7. 运行下面的命令,更新grub配置文件:
代码:
sudo update-grub2
sudo update-initramfs -u

8. 重启。大功告成!
注:(此步有双显卡用户会有关机分辨率正常开机出现条纹(花屏)的问题,勿看)
六、超简单为 Grub 2 启动引导菜单添加背景图
安装Ubuntu Linux时如果也安装了Grub 2 启动引导菜单的,默认的菜单是黑底白字很单调,可以为它加上一个背景图片。
步骤a、下载你喜欢的图片保存好,图片的尺寸大小不限,jpg格式或png格式都可以,也许其它的图片格式也行,
步骤b、按下快捷键 Alt F2 打开“运行一个命令”对话框,输入命令,把图片复制到Grub启动目录中,例如:
代码:
sudo cp /home/cc/图片/sea.jpeg /boot/grub/sea.jpeg

步骤c、最后更新Grub 2,按下快捷键 Alt F2 打开“运行一个命令”对话框,输入:
代码:
sudo update-grub

重新启动计算机,就能看到带背景图的Grub 2 启动引导菜单了


页首
 用户资料  
 
362 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-03-13 15:39 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
sudo -i
xhost +SI:localuser:lightdm
su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter background-color ''
用gnome-tweak-tool

FAQforge
Set lightdm wallpaper that is independant of the user’s wallpaper (Ubuntu/Linux Mint)
CSch Categories: Basics, Linux & Unix, Ubuntu Tags: background, change, dconf-tools, lightdm, static, user, wallpaper
Using lightdm, the wallpaper that is shown is usually the one used by the selected user. If you want to change this or just set a static wallpaper for your login screen, there are a few possibilities to do that.

1. Method

The first one is to make your wallpaper inaccessible to others, letting lightdm fall back to its default wallpaper. For this method, dconf-tools must be installed. If it isn't installed on your system yet, install it with

sudo apt-get install dconf-tools

With these tools you can easily configure lightdm - however you cannot do so in the GUI since you must be logged in as lightdm user. Do so by entering following into a terminal:

sudo xhost +SI:localuser:lightdm

sudo su lightdm -s /bin/bash

Now you can edit any of lightdm's settings with the command line - you can use the dconf GUI as reference for the paths and variable names (the dconf path to the lightdm unity greeter configuration is com>canonical>unity greeter). Set the background picture with

gsettings set com.canonical.unity-greeter background '/usr/share/backgrounds/orsomewhereelse.png'

Replace the path I use with the one to the wallpaper of your choice - it must be closed in quotation marks. You can also change the background color to black (x000000) or some other neutral color.

What happens in the login screen now is that the dconf wallpaper blinks up for a second and is then replaced by your wallpaper. To counter that, you must make your wallpaper inaccessible to other users. To do that, log in to your account again and open a terminal. Change the ownership to you instead of root if you need to (wallpapers in /usr/share... usually don't belong to you for example). Replace my username (howtoforge)and my group (howtoforge) with yours:

sudo chown howtoforge:howtoforge /usr/share/backgrounds/orsomewhereelse.png

Now right-click the wallpaper and go to the Permissions tab in the Properties menu. Set the rights of Others to None. Lightdm won't be able to access your wallpaper any longer, so it falls back to the one you specified in dconf-tools.

2. Method

The other possibility is to run

id -u

to find out your user ID and afterwards run (replace [your id] with the ID the previous command spit out (without brackets) and the path I used with the one to the wallpaper you want lightdm to display):

dbus-send --system --print-reply --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User[your id] org.freedesktop.Accounts.User.SetBackgroundFile string:/path/to/wallpaper.jpg

This command has to be repeated every time you change your wallpaper and only replaces the wallpaper for one user. You can decide whether you like this method or the previous more.

To remove white dots, run the following commands in a Terminal:
去除绘制点
sudo xhost +SI:localuser:lightdm
sudo su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter draw-grid false;exit


禁用:
I don't think there is any need to revert anything. See "man xhost"
You could run this to remove lightdm from the access control list.
Code:

sudo -i
xhost -SI:localuser:lightdm

FYI these are the sequence of commands (tested in 16.04) to remove the greeter dots.
Code:

sudo -i
xhost +SI:localuser:lightdm
su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter draw-grid 'false'

You can then type in "exit" and press Enter. Repeat.
or
just close the terminal.


最后由 243750496 编辑于 2017-04-17 12:19,总共编辑了 4 次

页首
 用户资料  
 
363 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-03-13 15:44 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
answered Jan 5 '15
updated Jan 5 '15
Using gsettings, for example:

$ gsettings set org.gnome.desktop.wm.preferences button-layout 'minimize,maximize,close:'
That command will put Minimize, Maximize and Close buttons to the left. You can change the order and which buttons to use. (If you put : in front, buttons will be aligned to the right).

HTH,

Germán.


页首
 用户资料  
 
364 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-03-16 10:13 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
Mini-ITX机箱:https://detail.tmall.com/item.htm?id=35375117476&spm=a1z09.2.0.0.h90T0e&_u=gd0ltsk3df3&skuId=56125469371
配套的12cm风扇防尘网:https://detail.tmall.com/item.htm?id=18914610772&spm=a1z09.2.0.0.h90T0e&_u=gd0ltsk9f9f
配套的120水冷:https://detail.tmall.com/item.htm?id=545144573353&spm=a1z09.2.0.0.h90T0e&_u=gd0ltskbfe2
12cm风扇:https://detail.tmall.com/item.htm?id=537796878714&spm=a1z09.2.0.0.h90T0e&_u=gd0ltsk5819https://item.taobao.com/item.htm?spm=a1z09.2.0.0.5mfLes&id=537296808001&_u=id0ltsk7183

海盗船白金统治者内存风扇:
https://item.taobao.com/item.htm?spm=a1 ... d0ltsk7183
海盗船水冷替换用风扇(非水冷原装风扇)3只一套
https://item.taobao.com/item.htm?spm=a1 ... d0ltsk89f9
海盗船SP120(日食风扇3只套装)
https://item.taobao.com/item.htm?spm=a1 ... d0ltsk13c6

注意换新服务也要买上(第一年换新+第二年只换不修)
京东海盗船HD120(选单只带控制器(主要是为了买控制器,这个买不到,如组合买3个装请上淘宝))
http://item.jd.com/11258698860.html
京东海盗船SP120(选单只带控制器(主要是为了买控制器,这个买不到,如组合买3个装请上淘宝))
http://item.jd.com/10907719837.html

注:控制器通用!

华硕千年光盘刻录机(千年光盘读取通用,但刻录需要刻录机支持,不是所有刻录机都能刻)
https://detail.tmall.com/item.htm?spm=a ... abbucket=2
先锋蓝光刻录机:
https://item.taobao.com/item.htm?spm=a2 ... t=2#detail
蓝牙功能的wacom数位板(通过蓝牙连接,避免电池过度充电(通过usb链接同时进行充电)导致电池寿命降低)
https://detail.tmall.com/item.htm?id=54 ... d0ltsk0dd5
带实时显示的手绘屏(不带电池)
https://detail.tmall.com/item.htm?id=52 ... d0ltsk9887

注:链接中的手绘板都支持linux


https://pan.baidu.com/s/1hrAW8Aw
附件:
2017-04-08_23-25-01.png
2017-04-08_23-25-01.png [ 493.76 KiB | 被浏览 1782 次 ]


点点虫扎堆:
附件:
2017-04-09_14-46-02.png
2017-04-09_14-46-02.png [ 145.78 KiB | 被浏览 1777 次 ]


附件:
2017-04-09_14-46-50.png
2017-04-09_14-46-50.png [ 144.41 KiB | 被浏览 1777 次 ]



港行 原装正品 爱色丽 Colormunki photo 显示器校色仪 送原厂色卡
https://item.taobao.com/item.htm?spm=a1 ... d0ltska841

后期我要做linux上的色彩管理,需要用到以上两个设备+红蜘蛛(displaycal为其校色软件是GUI的没难度,难的是使用Argyllcms用命令行校色,但是Argyllcms不支持spyder print所以才需要购买爱色丽的设备,如果需要用到请注意)
罗技太阳能键盘surface(Windows)专用版
https://item.taobao.com/item.htm?id=522 ... d0ltskf912
surface使用的分线器(因为罗技太阳能键盘使用的是usb接收器不是蓝牙,所以唯一的端口被占用,另外还要接雷蛇鼠标和移动硬盘或u盘所以需要分线器,这个不需要单独供电
https://detail.tmall.com/item.htm?id=52 ... d0ltsk8c9d


最后由 243750496 编辑于 2017-05-18 15:59,总共编辑了 12 次

页首
 用户资料  
 
365 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-03-18 18:04 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
https://pan.baidu.com/s/1b7eMIi
http://askubuntu.com/questions/9867/how ... nome-shell

If you're using Gnome Shell and you want the window buttons on the left, use this command:

dconf write /org/gnome/shell/overrides/button-layout "'close,minimize,maximize:'"
Then restart the shell if needed: press Alt+F2, type r and press Enter.


To set the icons you can use dconf-editor or:

gsettings set com.solus-project.budgie-wm button-layout 'close,minimize,maximize:appmenu'
For the gnome windows (like settings) it's:

gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/ShellShowsAppMenu': ,'Gtk/DecorationLayout': <'close,maximize,minimize:menu'>}"
close,maximize,minimize:menu would be

menu:minimize,maximize,close
if you want it the other way around. Then, if you did not have it:

sudo apt install gnome-tweak-tool
Start it, set the themes under appearance and enjoy the eye candy :). Thanks for sharing the PPA's!

[edit] I noticed that you can start Budgie Welcome from the start menu. Start it and click default settings. Then you have the option to install the Arc and Material Design themes. It seems the Material Design is the one with the transparency. Click install and then Apply. [/edit]


gsettings set com.solus-project.budgie-wm button-layout 'close,minimize,maximize:appmenu'
gsettings set com.solus-project.budgie-helper.workarounds fix-button-layout 'close,minimize,maximize:menu'


最后由 243750496 编辑于 2017-04-04 20:26,总共编辑了 8 次

页首
 用户资料  
 
366 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-03-30 17:10 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
Ubuntu budgie 17.04安装指南

NVIDIA X配置文件路径 /etc/X11/xorg.conf
(配置文件路径有时候会是空白的 选择此路径即可)

编译源码安装并生成deb包:
auto-apt run ./configure
make
sudo checkinstall

curl https://s3-us-west-2.amazonaws.com/brave-apt/keys.asc | sudo apt-key add -
echo "deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt `lsb_release -sc` main" | sudo tee -a /etc/apt/sources.list.d/brave-`lsb_release -sc`.list
sudo apt-get update

sudo apt-get install python-pip python-dev build-essential exfat-utils gir1.2-webkit-3.0 checkinstall auto-apt libglu1-mesa:i386 network-manager-openvpn-gnome network-manager-openvpn phablet-tools android-tools-adb btrfs-tools dmsetup e2fsprogs f2fs-tools dosfstools hfsutils hfsprogs jfsutils mdadm util-linux lvm2 ntfs-3g reiser4progs reiserfsprogs xfsprogs nfs-common nfs-kernel-server gparted seahorse testdisk rar unrar synaptic python3-pip flashplugin-installer brave
sudo apt-get remove chromium-browser
cd ~/Downloads
wget -O brave.deb https://laptop-updates.brave.com/latest/dev/ubuntu64
sudo dpkg -i brave.deb

sudo pip install --upgrade pip
sudo pip3 install --upgrade pip
sudo pip remove python2
python setup.py install --record log
cat log | xargs rm -rf
python ./setup.py install --record install.txt
cat install.txt | xargs rm -rf
sudo pip install *.tar.gz
pip search *


https://sourceforge.net/projects/ffmulticonv/
sudo pip3 install ffmulticonverter-1.8.0.tar.gz

sudo mkdir /usr/lib/pepperflashplugin-nonfree/
sudo cp /usr/lib/adobe-flashplugin/manifest.json /usr/lib/pepperflashplugin-nonfree/
sudo cp /usr/lib/adobe-flashplugin/libpepflashplayer.so /usr/lib/pepperflashplugin-nonfree/
然后就可以再brave中启用flash插件了


文件浏览器显示PSD脚本:

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#!/bin/bash

# -----------------------------------------------------------
# -- Write psdthumbnailer
# -----------------------------------------------------------
OUTFILE=/usr/lib/psdthumbnailer
(
sudo cat <<'EOF'
# bin/bash
# Arguments / Parameters %i %o %s
f_in=$1
f_out=$2
f_size=$3
# Execute Convert PSD to PNG through ImageMagick
exec convert "psd:$f_in[0]" -scale "$f_sizex$f_size" "png:$f_out"
EOF
) > $OUTFILE
# -----------------------------------------------------------
# -- Write photoshop.thumbnailer
# -----------------------------------------------------------
OUTFILE=/usr/share/thumbnailers/photoshop.thumbnailer
(
sudo cat <<'EOF'
# bin/bash
[Thumbnailer Entry]
TryExec=/usr/lib/psdthumbnailer
Exec=/usr/lib/psdthumbnailer %i %o %s
MimeType=image/vnd.adobe.photoshop; image/x-photoshop; image/x-psd;
EOF
) > $OUTFILE
# -----------------------------------------------------------
# -- Set File Permissions
# -----------------------------------------------------------
sudo chmod 0755 /usr/lib/psdthumbnailer
sudo chmod 0644 /usr/share/thumbnailers/photoshop.thumbnailer

# -----------------------------------------------------------
# -- Add GConf Hooks to parse thumbnails
# -----------------------------------------------------------
sudo gconftool-2 --set /desktop/gnome/thumbnailers/image@vnd.adobe.photoshop/enable --type bool true

sudo gconftool-2 --set /desktop/gnome/thumbnailers/image@vnd.adobe.photoshop/command --type string "/usr/lib/psdthumbnailer %i %o %s %i %o %s"

# -----------------------------------------------------------
# -- Install Dependencies
# -----------------------------------------------------------

sudo apt-get install imagemagick

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

显示XCF命令:
To get XCF thumbnails in Nautilus, firstly install gnome-xcf-thumbnailer. In Ubuntu, use the following command:
sudo apt-get install gnome-xcf-thumbnailer

At this point the the thumbnails don't work yet because GNOME XCF Thumbnailer doesn't install a .thumbnailer file, required by Nautilus 3.x. To fix this, use the following commands:
sudo mkdir -p /usr/share/thumbnailers/
echo -e "[Thumbnailer Entry]\nTryExec=gnome-xcf-thumbnailer\nExec=gnome-xcf-thumbnailer %i %o\nMimeType=image/x-xcf;image/x-compressed-xcf;" | sudo tee /usr/share/thumbnailers/gnome-xcf.thumbnailer
New XCF files (or if you move some already existing XCF files) should have thumbnails now but existing ones may not get thumbnails yet. Let's fix this too by removing the failed thumbnails from cache:
rm -r ~/.thumbnails/fail
rm -r ~/.cache/thumbnails/fail

That's it. Nautilus should now display XCF file thumbnails, as you can see in my screenshot above. I've tested this with Nautilus
3.4
, 3.6 and 3.8.

窗口最大化最小化关闭按钮左置

sudo apt-get install gnome-tweak-tool


answered Jan 5 '15
updated Jan 5 '15
Using gsettings, for example:

$ gsettings set org.gnome.desktop.wm.preferences button-layout 'minimize,maximize,close:'
That command will put Minimize, Maximize and Close buttons to the left. You can change the order and which buttons to use. (If you put : in front, buttons will be aligned to the right).

HTH,

Germán.


用户与群组
sudo apt-get install gnome-system-tools

为ryzen处理器和Nvidia.run驱动打补丁
补丁链接(适用于375.39和318.13):
cd ~/Downloads
sh *.run --extract-only
cd N*39/13(注:375.39/378.13)
wget https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-kmod.git/plain/kernel_4.10.patch
或者
patch -p1 <<< $(curl https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-kmod.git/plain/kernel_4.10.patch)(注:curl)
patch -p1 < ./kernel*.patch(注:wget)
sudo update-initramfs -u
sudo reboot
切换到tty1
sudo service lightdm stop(一定要有service!)
cd ~/Downloads/N*39/13(注:375.39/378.13)
sudo ./nvidia-installer


英伟达官方.run驱动安装

maybe it is too late ,but hope can help for others. the follow tips worked for ubuntu 16.04 and elementary os 0.4.

remove all nvidia packages ,skip this if your system is fresh installed

sudo apt-get remove nvidia* && sudo apt autoremove
install some packages for build kernel:

sudo apt-get install dkms build-essential linux-headers-generic
now block and disable nouveau kernel driver:

sudo gedit /etc/modprobe.d/blacklist.conf
Insert follow lines to the blacklist.conf:

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
save and exit.

Disable the Kernel nouveau by typing the following commands(nouveau-kms.conf may not exist,it is ok):

echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
build the new kernel by:

sudo update-initramfs -u
reboot



As the error states, you are still running an X server. This error occurs when you try to install the Nvidia .run files while logged in.

Make sure you are logged out.

Hit CTRL+ALT+F1 and login using your credentials.
kill your current X server session by typing sudo service lightdm stop or sudo lightdm stop
Enter runlevel 3 by typing sudo init 3 and install your *.run file.
You might be required to reboot when the installation finishes. If not, run sudo service lightdm start or sudo start lightdm to start your X server again.

sudo sh /usr/bin/nvidia-bug-report.sh
sudo nvidia-xconfig -sli=on -multigpu=on

apt-cache policy gparted
sudo snap install --edge --devmode gallery-app

[功能]

ubuntu下面的软件包管理工具。


[举例]

目前常用的

==========

*更新本机中的数据库缓存:

sudo apt-get update


*查找包含部分关键字的软件包:

sudo apt-cache search <你要查找的name>


*安装指定的软件:

sudo apt-get install <你要安装的软件包>


*下载软件包源代码(如果有的话):

apt-get source <你要下载的源代码包名>



详细的资料

=========

http://www.debian.org/doc/manuals/apt-h ... ng.en.html

apt-get:


安装和卸载------

*更新本机中的数据库缓存:

sudo apt-get update

最好定期更新一下使你自己机器上面的数据和服务器(/etc/apt/sources.list列出)上面的信息保持一致,在安装软件之前可以运行一下这个命令保证成功性。


*安装软件:

#apt-get install packagename

这里将安装你需要的在sources.lists中的最新的软件包,如果有其他依赖则自动安装相应的依赖软件包。packagename可以是多个软件包。

一些有用的选项:

-h This help text.

-d Download only - do NOT install or unpack archives

-f Attempt to continue if the integrity check fails

-s No-act. Perform ordering simulation

-y Assume Yes to all queries and do not prompt

-u Show a list of upgraded packages as well


*卸载软件(用install):

#apt-get install packagename-

在需要卸载的包后面加上一个'-'(我没有实验过),当然可以apt-get install p1 p2-这样多个命令合并了,装p1卸p2。


*卸载软件2:

#apt-get remove packagename

这会卸载相应的软件,同时也会卸载依赖的部分,没办法指定不卸载依赖的。但是软件的配置文件还是会留在系统中。


*完全卸载软件包括删除配置:

#apt-get --purge remove packagename

这样配置文件也会被删除。


*安装软件2(用remove):

#apt-get remove packagename+

这个和用install来卸载软件的意义类似,在包名称后面添加一个+,表示安装。


*修复或者只安装最新版本:

#apt-get --reinstall install packagename

这里,如果你的软件包被破坏了,或者你想要安装一个最新的软件,运行这个。


升级软件包------

*升级软件包1:

#apt-get -u upgrade

这里加上-u选项列出将要升级的软件,可能会提示有些软件不会升级,因为可能会破坏依赖关系,更好的方法是利用apt-get dist-upgrade

你可以通过cd或者添加源地址来更新,如果你想从cd来升级,首先运行apt-cdrom把cd中的软件添加到/etc/apt/sources源中,然后运行apt-get dist-upgrade来升级,但是因为apt-get总是使用最新版本,如果cd中的不是最新的版本,那么也不会用到cd。


*升级软件包2:

#apt-get -u dist-upgrade

这样安装的软件前面apt-get -u upgrade安不了的也会安装了,但个别的仍然不能安装,例如:升级会导致需要卸载一些包,卸载这些包会导致另外的软件不能用,所以就不升级了。


*升级软件包3:

#apt-get -u install packagename

假设前面升级的时候packagename无法升级,那么这个命令会升级packagename如果需要卸载默写模块而卸载这些模块导致一些软件无法使用,那么干脆把这些软件都卸载了,然后升级,这个命令会导致packagename最终升级了。


清理没用的包文件------

用apt-get 安装软件包的时候,apt会从/etc/apt/sources.list里面将相应的软件包恢复出来,把它们存放在一个本地的文档库中(/var/cache/apt/archives/)然后才开始安装,随着时间的增长,这将不断地消耗硬盘的空间。


*清理所有的缓存文件:

#apt-get clean

这会清理所/var/cache/apt/archives/ 和 /var/cache/apt/archives/partial/中没有被锁定的文件。当然你再次安装软件的时候,这个软件又被恢复到本地文档库中了。


*仅仅清理旧的缓存文件:

#apt-get autoclean

这会清理旧版本的/var/cache/apt/archives/ 和 /var/cache/apt/archives/partial/中的文件。旧版本是指已经有更新的版本的软件了,再下载的话应下载最新的而不是这个旧版本的了。根据apt-show-versions -p可以知道哪些是旧的。


*安装指定版本的软件包:

# apt-get install package=version


查找信息--------


*查找一个含有packagename字符串的包:

#apt-cache search packagename

这样将输出所包含packagename字符串的包。


*显示软件包的详细信息:

# apt-cache show stella

这包含了软件包许多的信息,例如如果你已经安装了这个软件包,信息里面也会显示。


*显示软件包的大致信息:

apt-cache showpkg packagename

这会显示大致的信息。


*查看那些包可以升级的信息:

$ apt-show-versions -u

这个apt-show-versions工具需要安装一下的。


*查看当前特定软件版本:

apt-show-versions -p packagename


*检查packagename依赖的包:

#apt-cache depends packagename


工作相关--------


*安装编译源代码需要的库(包):

# apt-get build-dep packagename

所的源代码包一个'Build-Depends'域,指明了从源代码编译这个包需要安装的软件。上面的命令可以下载这些包,其中'packagename'是包名。



*查看编译一个包需要哪些其他的库(包):

#apt-cache show packagename

如果你只是想要检查编译一个包需要哪些其他的包,那么可以利用上面的命令,其中'packagename'是包名。



*下载包packagename的源代码:

$ apt-get source packagename

这将在当前目录下载个文件:*.orig.tar.gz,*.dsc,*.diff.gz。如果这个包是debian的,那么最后一个文件没有,并且第一个文件名里面不包括"orig"字符串。

.dsc文件被dpkg-source使用,把源代码包解压到目录 packagename-version.每一个下载的源代码包里面都有一个debian/目录,这个目录包含了用于创建.deb包的文件。



*下载的时候自动把源代码包编译:

$ apt-get -b source packagename

可能是编译成.deb包,我没有试过。


*根据下载的源代码创建deb包:

$ dpkg-buildpackage -rfakeroot -uc -b

如果你决定在下载的时候不创建deb包,你可以以后通过在下载的包之后创建的目录里面运行这个命令来创建。


*直接利用包管理器安装包:

# dpkg -i file.deb

需要直接使用包管理器,运行这个命令来安装包。


-------dpkg查找


*已知软件包中有一个文件,根据文件查找软件包:

# dpkg -S stdio.h

输入之后,输出如下:

libc6-dev: /usr/include/stdio.h

libc6-dev: /usr/include/bits/stdio.h

perl: /usr/lib/perl/5.6.0/CORE/nostdio.h

这在知道包中某些文件的时候,来根据文件查找软件包这种情况下非常用。


*查找安装在你的机器上面的软件包:

dpkg -l


*自动安装缺失的软件:

# auto-apt run command

这里,command是你要运行的命令。例如 auto-apt run ./configure .当缺失依赖软件的时候,它会询问你安装,方便了编译。安装之后会继续运行。auto-apt需要保持一个最新的数据库,利用这个命令进行更新:auto-apt update, auto-apt updatedb and auto-apt update-local。


--------apt-get查找


*利用apt-file根据文件名查找相应的软件包:

$ apt-file search filename

如果你只知道程序名字filename,那么你可以运行这个命令,它的工作方式和 dpkg -S差不多,就是根据某个软件包里可能包含的文件来查找这个软件包的名字。另外,它也会显示包含这个文件的没有安装的软件包。当你编译的时候,提示缺了什么头文件的时候,利用这个很方便地确定需要装哪些软件包(当然利用audo-apt更方便).


*列出一个软件包中包含的文件:

$apt-file list packagename

这里,apt-file是根据一个数据库来读取信息的,所以需要保持数据库是最新的。


*更新apt-file的数据库:

# apt-file update

默认情况下,apt-file的数据库和auto-apt是一样的。

必装软件

sudo apt-get install ardour audacity bleachbit blender brasero cecilia converseen deluge fcitx firefox freecad gimp goldendict guvcview guitarix hydrogen kazam krita librecad lives lmms meterbridge mixxx musescore openshot scribus virtualbox pitivi playonlinux rawtherapee rednotebook rosegarden soundconverter truecrypt uget tuxguitar vlc gnome-tweak-tool dconf-editor

需要手动安装

nutstore nod32 sougoupinyin crossover displaycal ffmulticonverter Goldendict词典文件 ue4 qt steam wicreset wiznote gitter


使用dconf Editor更改最大化、最小化、关闭和菜单按钮的位置

/org/gnome/settings-daemon/plugins/xsettings/overrides:
{'Gtk/ShellShowsAppMenu': <0>, 'Gtk/DecorationLayout': <'minimize,close,maximize:menu'>}

/org/gnome/desktop/wm/preferences/button-layout:
minimize,close,maximize:

/com/solus-project/budgie-wm/button-layout:
minimize,close,maximize:menu
minimize,close,maximize:appmenu


UE4 Depends
sudo apt-get install build-essential mono-mcs mono-devel mono-xbuild mono-dmcs mono-reference-assemblies-4.0 libmono-system-data-datasetextensions4.0-cil libmono-system-web-extensions4.0-cil libmono-system-management4.0-cil libmono-system-xml-linq4.0-cil cmake dos2unix clang-4.0 libfreetype6-dev libgtk-3-dev libmono-microsoft-build-tasks-v4.0-4.0-cil xdg-user-dirs


Vyprvpn设置教程
Setup the PPTP connection

Expand the connection menu by clicking the up/down arrow icon in the system taskbar. Then, click on Edit Connections to open the Network Connections control panel.
Click the Add button to add a new VPN configuration.
When prompted to choose a connection type, choose Point-to-Point Tunneling Protocol (PPTP) and click the Create button.
In the Connection name: textbox, enter "VyprVPN (PPTP)"
In the Gateway field enter one of the following server hostnames. View the list of server addresses here.
In the User name: textbox, enter your login.
In the Password: textbox, enter your password.
Click the Advanced button to bring up an additional settings dialog.
Check the Use Point-to-Point encryption (MPPE) box.

Click the OK button
Click the Save button (you may be prompted to enter your password to store the configuration securely)
Restart Network Manager (The best way we have found to restart Network Manager is to open a terminal and type "sudo restart network-manager". This will disconnect all of your network connections)
Establish a secure connection

In the system taskbar, click on the up/down arrow icon to bring up the connection menu.
Mouse over VPN Connections and select VyprVPN (PPTP).
After a few seconds, you will receive a pop-up notification that the connection has been established.
You can check your IP here:https://www.goldenfrog.com/whatismyipaddress

VyprVPN Free accounts are limited to using our Desktop and Mobile applications to connect to our VPN service. Please see "What is VyprVPN Free?" for more information.

Follow the steps below to configure OpenVPN on your Ubuntu machine. This tutorial was created using Ubuntu 16.04.1.

1. Open Terminal, which you can find by using the Ubuntu search feature.

2. Type the following command string and press Enter:

sudo apt-get install -y network-manager-openvpn network-manager-openvpn-gnome

This will install the necessary OpenVPN packages on the machine and add OpenVPN as an option in the desktop VPN configuration menu.



3. Restart network-manager by typing the following command and pressing Enter:

sudo service network-manager restart



4. Download the Golden Frog CA certificate and place it in the OpenVPN folder on your machine by typing the following command and pressing Enter. Ignore line breaks. This is one single command.

sudo wget https://support.goldenfrog.com/hc/article_attachments/212052287/ca.vyprvpn.com.crt /etc/openvpn



5. Configure the OpenVPN connection by opening Network Connections. You can locate this by using the Ubuntu search feature.

6. Click Add.

7. Under VPN in the drop-down, choose OpenVPN and click Create.



8. Edit the information in the configuration screen as follows:

Connection name: VyprVPN
Gateway: Enter a server address. View a list of server addresses here.
Type: Select Password
Username: Your Golden Frog account email address
Password: Your Golden Frog account password
CA Certificate: Browse to /etc/openvpn and select ca.vyprvpn.com.crt


9. Click Advanced.

10. Check the option for Use LZO data compression and click OK.



11. Click Save.

How to Connect and Disconnect:

1. Click the Network Connections icon at the top of your desktop in right area of the menu bar. It will generally look like two arrows opposite each other or a WiFi signal.

2. Scroll down to VPN Connections.

3. Click VyprVPN and wait for the connection to establish.



4. You will see a pop-up once connected. Additionally, a lock icon will appear by your network icon in the top menu bar.



5. To disconnect any any time, navigate back to the Network Connections drop-down in the top menu bar, click VPN Connections, and then click Disconnect VPN.

6. Enjoy VyprVPN on your Ubuntu machine!

添加nvidia驱动ppa:
代码:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update



9.3. Run levels

A run level is a state of init and the whole system that defines what system services are operating. Run levels are identified by numbers. Some system administrators use run levels to define which subsystems are working, e.g., whether X is running, whether the network is operational, and so on. Others have all subsystems always running or start and stop them individually, without changing run levels, since run levels are too coarse for controlling their systems. You need to decide for yourself, but it might be easiest to follow the way your Linux distribution does things.

The following table defines how most Linux Distributions define the different run levels. However, run-levels 2 through 5 can be modified to suit your own tastes.

Table 9-1. Run level numbers

0 Halt the system.
1 Single-user mode (for special administration).
2 Local Multiuser with Networking but without network service (like NFS)
3 Full Multiuser with Networking
4 Not Used
5 Full Multiuser with Networking and X Windows(GUI)
6 Reboot.

sudo apt-get install xserver-xorg-input-wacom (必须是3.4才有PTH660 K1F驱动)
然后打开蓝牙选择BTIntousPro M
注:LEIntousPro M不需要连连上了会立马断掉
wacom cintiq如果使用的话是不可以连接显示器的(显示器和wacom新帝冲突),但是不需要高版本驱动



软件的ppa Ubuntu 17.04已经正式发布但是有些ppa 仍然不能用但是先发上来省的去爬楼了(需要的话)
sudo apt-get install gir1.2-webkit-3.0 for Anoise bug
sudo add-apt-repository ppa:costales/anoise
sudo add-apt-repository ppa:wiznote-team
sudo add-apt-repository ppa:deluge-team
sudo add-apt-repository ppa:dhor/myway (rawtherapee)
sudo add-apt-repository ppa:otto-kesselgulasch/gimp-edge
sudo add-apt-repository ppa:freecad-maintainers/freecad-daily,(sudo add-apt-repository -y ppa:freecad-maintainers/freecad-stable)
sudo add-apt-repository ppa:librecad-dev/librecad-daily,(sudo add-apt-repository ppa:librecad-dev/librecad-stable)
sudo add-apt-repository ppa:thomas-schiex/blender
sudo add-apt-repository ppa:dimula73/krita
sudo add-apt-repository ppa:scribus/ppa
sudo add-apt-repository ppa:libreoffice/ppa
sudo add-apt-repository ppa:noobslab/apps,(curlew)
sudo add-apt-repository ppa:ubuntuhandbook1/apps,(converseen)
sudo add-apt-repository ppa:plushuang-tw/uget-devel,(uget)
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa,(firefox)

全新安装应该安装的软件(命令)
sudo apt-get install unity-tweak-tool vlc wiznote smplayer anoise* soundconverter deluge indicator-china-weather synaptic gnome-color-manager kazam lives scribus-trunk rar unrar ark playonlinux brasero blender krita3-testing gimp gimp-gmic rawtherapee-unstable freecad-daily librecad libreoffice curlew bleachbit gimp-ufraw ufraw-batch converseen goldendict uget firefox gnome-raw-thumbnailer

通过添加ppa升级应用:
卸载:freecad 安装 freecad-daily
安装:gimp-ufraw ufraw-batch
卸载:scribus 安装 scribus-trunk

gimp相关插件安装:
sudo apt-get install gimp-lensfun gimp-plugin-registry gimp-texturize icc-profiles gimp-ufraw ufraw-batc


最后由 243750496 编辑于 2017-07-28 14:03,总共编辑了 66 次

页首
 用户资料  
 
367 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-04-12 12:16 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
更新驱动使PTH660数位板蓝牙模式正常工作


参考文章1:http://linuxwacom.sourceforge.net/wiki/index.php/Input-wacom
安装input-wacom(目前与现有4.10 kernel冲突,所以暂时无法安装):
下载:https://sourceforge.net/projects/linuxwacom/files/xf86-input-wacom/input-wacom/
中的需要的版本
sudo apt-get install linux-headers-$(uname -r) build-essential # on Debian, Ubuntu, Mint

tar xjvf input-wacom-<version number>.tar.bz2

auto-apt run ./configure
make
sudo checkinstall

安装:xf86-input-wacom
参考文章2:http://linuxwacom.sourceforge.net/wiki/index.php/Xf86-input-wacom
下载https://sourceforge.net/projects/linuxwacom/files/latest/download

sudo apt-get install autoconf pkg-config make xutils-dev libtool xserver-xorg-dev libx11-dev libxi-dev libxrandr-dev libxinerama-dev libudev-dev systemd

auto-apt run ./configure --prefix=/usr
make
sudo checkinstall

安装libwacom
参考文章3:http://linuxwacom.sourceforge.net/wiki/index.php/Libwacom
On Ubuntu:

sudo apt-get build-dep libwacom

or

sudo apt-get install libgudev-1.0-dev libxml++2.6-dev

下载所需文件:https://sourceforge.net/projects/linuxwacom/files/libwacom/

./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu/
sudo checkinstall

After building, copy the libwacom data files in to /usr/share/libwacom:

sudo cp -r /home/<path>/libwacom/data/* /usr/share/libwacom/
or
sudo cp -r /home/<path>/linuxwacom-libwacom/data/* /usr/share/libwacom/



参考原文章:http://linuxwacom.sourceforge.net/wiki/index.php/Downloads


version number does not start with digit解决办法:

代码:
For me on (L)Ubuntu 15.10, it was as simple as changing the version, from "stable" to "1":

*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values:

0 -  Maintainer: [ root@anon ]
1 -  Summary: [ redis - web interface ]
2 -  Name:    [ redis ]
3 -  Version: [ stable ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ amd64 ]
8 -  Source location: [ redis-stable ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ redis ]
12 - Conflicts: [  ]
13 - Replaces: [  ]

Enter a number to change any of them or press ENTER to continue: 3
Enter new version:
>> 1



Add 'video=vesafb: off vga=normal'

on the kernel command line in the bootloader configuration file.
Q4:how to add the command
Edit the file /etc/default/grub and add the commands to the line
Code:

GRUB_CMDLINE_LINUX="video=vesafb:off vga=normal"

between the "quote marks" for example.
Then run
Code:

sudo update-grub

from a terminal to add the line to the boot configuration file.


最后由 243750496 编辑于 2017-04-17 10:13,总共编辑了 1 次

页首
 用户资料  
 
368 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-04-13 22:22 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
翻出来一个小时候写的一个游戏,算是福利放给大家
代码:
#include<stdio.h>
#include<windows.h>
#include<conio.h>
#include<time.h>
main()
{
 FILE *i,*k,*d;
 int a=0,b,c=0,e=0,f=0,g=0,j=0,h=0,l=0,n=0,o=0,p=0,q=3/*命*/,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;
 long int m1=0,m2=0;
 time_t now=0;
 while(1)
 {
  B:
   switch((e>=0)&&(e<20)){case 1: f=4;b=1;h=2;break;}
   switch((e>=20)&&(e<30)){case 1: f=4;b=2;h=3;break;}
   switch((e>=30)&&(e<40)){case 1: f=4;b=3;h=4;switch(e==140){case 1:switch(x==0){case 1:q+2;x=1;u=1;break;}break;}break;}//1
   switch((e>=40)&&(e<50)){case 1: f=5;b=4;h=2;break;}
   switch((e>=50)&&(e<60)){case 1: f=5;b=5;h=3;break;}
   switch((e>=60)&&(e<70)){case 1: f=5;b=6;h=4;switch(e==140){case 1:switch(x==0){case 1:q+2;x=1;u=1;break;}break;}break;}//2
   switch((e>=70)&&(e<80)){case 1: f=6;b=7;h=3;break;}
   switch((e>=80)&&(e<90)){case 1: f=6;b=8;h=4;break;}
   switch((e>=90)&&(e<120)){case 1: switch(e>=100){case 1:b=10;break;}f=6;b=9;h=60000;switch(e==90){case 1:switch(x==0){case 1:q++;x=1;u=1;break;}break;}break;}//3
   switch((e>=120)&&(e<=130)){case 1: f=4;b=11;h=2;o=1;break;}//纵向版o为标志
   switch((e>=130)&&(e<140)){case 1: f=4;b=11;h=3;o=1;break;}
   switch((e>=140)&&(e<150)){case 1: f=4;b=11;h=4;o=1;switch(e==140){case 1:switch(x==0){case 1:q+2;x=1;u=1;break;}break;}break;}//11
   switch((e>=150)&&(e<160)){case 1: f=5;b=12;h=3;o=1;break;}
   switch((e>=160)&&(e<170)){case 1: f=5;b=12;h=4;o=1;switch(e==140){case 1:switch(x==0){case 1:q+2;x=1;u=1;break;}break;}break;}//12
   switch((e>=170)&&(e<180)){case 1: f=6;b=12;h=2;o=1;break;}
   switch((e>=180)&&(e<200)){case 1: f=6;b=13;h=3;o=1;break;}
   switch(e>=200)
   {
    case 1:f=6;b=13;h=3;o=1;w++;switch(w>10){case 1:w=1;break;}
     switch(w==1)
     {case 1:u=10;break;
      case 0:u++;switch(u>10){case 1:u=10;break;}break;
     }
   break;
   }//13
  i=fopen("1.a","w+");//第1个文件打开
  srand(time(0));
  for(g=0;g<f;g++)
  {c=(rand()%10)+'0';fputc(c,i);}fclose(i);//第1个文件关闭
  d=fopen("3.a","w+");i=fopen("1.a","r");//第2个文件打开
  for(g=0;g<f;g++)
  {c=fgetc(i)-0;fputc(c,d);}
  fclose(d);fclose(i);rename("1.a","4.a");/*重命名*/rename("3.a","1.a");//第2个文件关闭
  d=fopen("4.a","r");n=f;m1=0;//第3个文件打开
  for(g=0;g<f;g++){c=fgetc(d)-'0';n=n-1;for(l=0;l<n;l++){c=c*10;}m1=c+m1;}
  fclose(d);remove("4.a");//第3个文件打开
  i=fopen("1.a","r");//第4个文件打开
  switch(o)
  {
   case 1:for(g=0;g<f;g++){printf("%c\n",fgetc(i));}break;
   case 0:for(g=0;g<f;g++){printf("%c",fgetc(i));}break;
  }
  now=clock();
  for(;clock()-now<CLOCKS_PER_SEC/h;);
  system("cls");fclose(i);remove("1.a");//第4个文件关闭
  k=fopen("2.a","w+");//第5个文件打开
  for(g=0;g<f;g++)
  {
   C:c=getch()-0;
    switch(c)
    {
     case 8:fclose(k);system("cls");k=fopen("2.a","r");d=fopen("4.a","w+");//第5个文件关闭,第6个文件打开
      for(r=0;r<f;r++){c=fgetc(k)-0;fputc(c,d);}fclose(k);fclose(d);//第6个文件关闭
      remove("2.a");k=fopen("2.a","w+");d=fopen("4.a","r");//第7个文件打开
      for(r=0;r<g;r++){c=fgetc(d)-0;
      switch(o)
      {
       case 1:printf("%c\n",c);break;
       case 0:printf("%c",c);break;
      }fputc(c,k);}fclose(d);remove("4.a");/*删除*/g=g-1;goto C;////////////////////////////第7个文件关闭
     default:
      switch((c>=48)&&(c<=57))
      {     
       case 0:
        switch((c==67)||(c==99))
        {
         case 1:q=q+2;switch(q>20){case 1:printf("维他命吃多了,撑死了。。。\n");q=1;m1=1;m2=2;goto D;}
         case 0:
          switch(c==45)
          {
           case 1:q=q-2;switch(q<=0){case 1:printf("维他命没了,饿死了。。。\n");q=1;m1=1;m2=2;goto D;}
           case 0:
            switch(c==13)
            {
             case 1:
              switch(g==f-1)
              {
               case 1:while(((c<48)||(c>57))&&(s==0)){c=getch()-0;t=1;};switch(t){case 1:goto E;}break;
               case 0:goto C;
              }break;
             case 0:goto C;
            }break;
          }break;
        }break;
       case 1:
        switch(g==f-1)
        {
         case 1:
          switch(s)
          {
           E:case 0:s=1;fputc(c,k);
            switch(o)
            {
             case 1:printf("%c\n",c);break;
             case 0:printf("%c",c);break;
            }
          break;
          }
         switch(t==1)
         {
          case 0:goto C;
          case 1:c=getch()-0;while(c!=13){c=getch()-0;}break;
         }
         case 0:fputc(c,k);
          switch(o)
          {
           case 1:printf("%c\n",c);break;
           case 0:printf("%c",c);break;
          }break;
        }break;
      }break;
    }
  }o=0;s=0;t=0;system("cls");fclose(k);//第5个文件关闭
  k=fopen("2.a","r");n=f;m2=0;//第8个文件打开
  for(g=0;g<f;g++){c=fgetc(k)-'0';n=n-1;for(l=0;l<n;l++){c=c*10;}m2=m2+c;}fclose(k);remove("2.a");////第8个文件打开
  D:switch(m1==m2)
  {
   case 0:q--;
   switch(q==0)
   {
    case 0: printf("你还有%d条命",q);for(j=0;j<60000;j++){printf("\r");}system("cls");goto B;
    case 1: printf("Game over!");for(j=0;j<60000;j++){printf("\r");}system("cls");//清屏
   }
   switch(b)
   {
    case 1:printf("等级:星星,积分为:%d\n",e);break;
    case 2:printf("等级:月亮,积分为:%d\n",e);break;
    case 3:printf("等级:太阳,积分为:%d\n",e);break;
    case 4:printf("等级:%c,积分为:%d\n",2,e);break;
    case 5:printf("等级:%c,积分为:%d\n",14,e);break;
    case 6:printf("等级:%c,积分为:%d\n",3,e);break;
    case 7:printf("等级:%c,积分为:%d\n",12,e);break;
    case 8:printf("等级:%c,积分为:%d\n",11,e);break;
    case 9:printf("等级:%c,积分为:%d\n",5,e);break;
    case 10:
    switch(p)
    {
     case 0:printf("等级:%c,积分为:%d\n恭喜你,你晋级了!\n现在开始下一轮!!!!!\n请稍候。。。",15,e);
     for(g=0;g<10;g++){printf("%c",7);}p=1;e=120;for(j=0;j<60000;j++){printf("\r");}goto B;
     default:printf("等级:%c,积分为:%d\n",15,e);break;
    }
    case 11:printf("等级:老C,积分为:%d\n",e);break;
    case 12:printf("等级:老B,积分为:%d\n",e);break;
    case 13:printf("等级:老A,积分为:%d\n",e);break;
   }goto A;
   case 1:y++;
    switch(y)
    {
     case 40:x=0;break;
     case 70:x=0;break;
     case 120:x=0;break;
     case 150:x=0;break;
     case 170:x=0;break;
     case 200:x=0;break;
    }e++;switch(u==10){case 1:v++;switch(v==10){case 1:q=q+2;v=0;break;}break;}
   fclose(i);fclose(k);break;
  }
 }A:fclose(i);fclose(k);system("pause");
}
 


附件:
Game终结版.rar [8.21 KiB]
被下载 14 次


页首
 用户资料  
 
369 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-04-16 20:10 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
You can install Dnscrypt using ppa:shnatsel/dnscrypt PPA

sudo add-apt-repository ppa:shnatsel/dnscrypt

sudo apt-get update

sudo apt-get install dnscrypt-proxy

chrome 搜索:
Tampermonkey
然后在如图所示输入:
https://github.com/gantt/downloadyoutube/raw/master/script/yt.user.js


附件:
youtube_Downloader.png
youtube_Downloader.png [ 103.46 KiB | 被浏览 1588 次 ]



然后YouTube页面就有下载选项了
附件:
download_button.png
download_button.png [ 598.82 KiB | 被浏览 1587 次 ]



另外:如果翻了墙还上不了YouTube请把wifi或网线输入的地方改成8.8.8.8;8.8.4.4不是VPN的ip4 DNS
114.114.114.114不可用了现在
附件:
vpn.png
vpn.png [ 354.6 KiB | 被浏览 1587 次 ]


附件:
vpn_not.png
vpn_not.png [ 356.18 KiB | 被浏览 1587 次 ]



blender教程
https://pan.baidu.com/s/1kUCmPr5
vivaldi浏览器
https://vivaldi.com/download/

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 61FF9694161CE595
sudo gedit /etc/apt/sources.list.d/sstp-client.list
安装SSTP清先添加以下地址:
代码:
deb http://ppa.launchpad.net/eivnaes/network-manager-sstp/ubuntu xenial main
deb-src http://ppa.launchpad.net/eivnaes/network-manager-sstp/ubuntu xenial main

sudo apt-get update
sudo apt-get install sstp-client network-manager-sstp
推荐款新的vpn:purevpn
https://www.purevpn.com
这个是目前网速最快的
玩robocraft 速度很快一点不卡
Ubuntu budgie 17.04 确定能用
但是切记不要从app store 付费而要从官网通过支付宝付费不然只是移动版,桌面版是60人民币一个月,30是移动版(只有手机能用)
而且有24小时在线客服(非email )
而且针对中国用户有特别优化的服务器,网速很快

杀毒软件请用Nod32
淘宝网上二版科技自营商城有售卖
https://item.taobao.com/item.htm?spm=a1 ... d0ltsk93b1

安装flash player
To install the new pepperflashplugin-nofree:

1. Open terminal (Ctrl+Alt+T) and run the command below to add the PPA:

sudo add-apt-repository ppa:jonathonf/pepperflashplugin-nonfree
2. Then update and install the new installer:

sudo apt-get update


sudo apt-get install pepperflashplugin-nonfree
For those who don’t want to add PPA, grab the .deb package directly from PPA page.

When a new flash release is out, just one command to install the updates:

sudo update-pepperflashplugin-nonfree --install
3. The PPA also contains, browser-plugin-freshplayer-pepperflash, an adapter to make pepper flash work for Firefox based browsers, install it via:

sudo apt-get install browser-plugin-freshplayer-pepperflash
Uninstall:

To remove the installer, simply run command:

sudo apt-get remove pepperflashplugin-nonfree browser-plugin-freshplayer-pepperflash && sudo apt autoremove
And the PPA can be removed by going to System Settings -> Software & Updates -> Other Software tab.


最后由 243750496 编辑于 2017-04-23 9:47,总共编辑了 25 次

页首
 用户资料  
 
370 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-04-16 20:35 
头像

注册: 2008-04-26 12:41
帖子: 11000
送出感谢: 11
接收感谢: 38
这个帖子要标记备用 :em05


_________________
[新手必读]wubi安装常见问题(FAQ)
[分享]装双系统的同学必看——Windows与Linux系统共享交换分区的方法
kde下唯美的暗黑内透主题(无需编译)
无穷老机上的Trinity Desktop Environment


页首
 用户资料  
 
371 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-04-27 22:10 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
推荐几款新的ios应用:
淘宝阅读 书旗小说 腾讯动漫 bilibili Acfun 腾讯自选股 京东股票 鑫财通 仙人掌股票 平安证券 中山证券 恒泰掌财 雪球 摩拜单车 弹琴吧(极客智能钢琴、智能尤克里里、智能吉他/电吉他) 飞猪 Deezer(spotify的替代品 需要翻墙到英国去注册)虾米音乐 gitter 点点虫 purevpn
链接: https://pan.baidu.com/s/1i5p7Gv7


页首
 用户资料  
 
372 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-05-12 20:05 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
linux上的打印机校色教程:
从http://www.russellcottrell.com/photo/LittleArgyllGUI.asp下载littleargyllgui

The -e parameter sets the number of white colored test patches, defaulting to 4 if the -e flag isn't used. The white patches are usually very important in establishing white point that the ICC data is made relative to, so it improves robustness to use more than a single point.
The -B parameter sets the number of black colored test patches, defaulting to 4 if the -B flag isn't used and the colorspace is grey or RGB. The black point can be very important for characterizing additive color spaces, so measuring more than one black patch improves robustness over measuring just a single point.
The -g parameter sets the number of patches in a set of combined (nominally gray) wedges. This will typically be equal RGB or CMY values, and by default will be equally spaced steps in device space. If the -p parameter is provided, then, then the steps will be distributed according to the power value. e.g. the option -g 5 will generate steps at 0.0 0.25 0.5 0.75 and 1.0, while the option -g 5 -p 2.0 will generate steps at 0.0 0.0625 0.25 0.5625 and 1.0. By default, no gray combination values are generated. When creating a test chart for a device that will be used as a source colorspace, it is often useful to generated some per colorant wedge values.
The -f parameter sets the number of full spread test patches.
设置好后
点击Generate然后点run

然后
instrument选colorMunki
Page:A4
output:16bit
resolution:300
点击Generate然后点run
附件:
printtarg.png
printtarg.png [ 24.76 KiB | 被浏览 1110 次 ]



然后chartread处直接点generate 然后点run不用设置

Manufacture:打印机生产商
Model:打印机型号
Description:相纸类型
-O:文件名.icc
-S:选择AdobeRGB1998(因为不让上传所以请自己从Photoshop的目录里拷)
-Z:Perceptual
其他不设置,
如果-i 和 -f在Generate 生成的命令里出现了那么删除它之后点run就可以了
附件:
colprof.png
colprof.png [ 39.25 KiB | 被浏览 1110 次 ]



argyllcms自带错误识别所以不用担心扫错了,但是有个小提示:听到水滴声请将设备置于最前面的白色部分(那个也是要扫描的色块尽管是白色)然后压住按钮匀速扫过去,可以扫的很快,扫错了按“回车”然后按“b”重新扫,全部扫完按d结束,注意:不要点patch by patch!

另外请对打印机设置平直打印,最高质量打印,纸张选择极度高光,关闭快速打印,在打印色表的时候关闭打印机的色彩管理(不是显示器或禁用全部色彩管理)
附件:
disable.png
disable.png [ 22.11 KiB | 被浏览 1041 次 ]


附件:
best photo.png
best photo.png [ 38.74 KiB | 被浏览 1041 次 ]


附件:
ultra glossy.png
ultra glossy.png [ 32.84 KiB | 被浏览 1041 次 ]


附件:
poster printing.png
poster printing.png [ 39.56 KiB | 被浏览 1041 次 ]


附件:
standard.png
standard.png [ 31.45 KiB | 被浏览 1041 次 ]



对spyder checkr(48色)进行拍摄,
然后把点击铬球受光面的SpyderCube的灰面(设置白平衡)
附件:
wb.png
wb.png [ 747.76 KiB | 被浏览 946 次 ]



然后调整曝光(exposure)使白色达到RGB90%(左侧有显示)
附件:
white.png
white.png [ 751.91 KiB | 被浏览 946 次 ]


然后拖动Black将黑色达到4%以下(左侧有显示)
附件:
black.png
black.png [ 750.25 KiB | 被浏览 946 次 ]


选择netral(裁剪后变为custom),也可以对其进行稍微旋转(按钮在裁剪图标的右边)
附件:
crop.png
crop.png [ 949.01 KiB | 被浏览 946 次 ]


然后点左下角的齿轮,然后选择16位TIFF其他默认
附件:
convert.png
convert.png [ 33.17 KiB | 被浏览 946 次 ]



scanin -v -p -dipn IMG_9047.tif SpyderChecker.cht SpyderChecker.cie
p will show the sampling areas as colored pixels.
The combination of -dipn is usually a good place to start.
The -v flag enables extra verbosity in processing. This can aid debugging, if a chart fails to be recognized.



Here is a log of the process, from Terminal output:

KT-Laptop-3:Debug kirkt$ dcraw -v -r 1 1 1 1 -o 0 -H 0 -T -6 -W -g 1 1 /Users/kirkt/Desktop/dcamprof/Debug/_MG_0044.CR2
Loading Canon EOS 5D Mark III image from /Users/kirkt/Desktop/dcamprof/Debug/_MG_0044.CR2 ...
Scaling with darkness 2047, saturation 15488, and
multipliers 1.000000 1.000000 1.000000 1.000000
AHD interpolation...
Building histograms...
Writing data to /Users/kirkt/Desktop/dcamprof/Debug/_MG_0044.tiff ...


KT-Laptop-3:Debug kirkt$ scanin -v -dipn target.tif ColorChecker.cht cc24_ref.cie
TIFFFetchNormalTag: Warning, ASCII value for tag "ImageDescription" contains null byte in value; value incorrectly truncated during reading due to implementation limitations.
TIFFFetchNormalTag: Warning, ASCII value for tag "Make" contains null byte in value; value incorrectly truncated during reading due to implementation limitations.
TIFFFetchNormalTag: Warning, ASCII value for tag "Model" contains null byte in value; value incorrectly truncated during reading due to implementation limitations.
TIFFFetchNormalTag: Warning, Incompatible type for "RichTIFFIPTC"; tag ignored.
Input file 'target.tif': w=2356, h=1562, d = 3, bpp = 16
Data input file 'cc24_ref.cie'
Data output file 'target.ti3'
Chart reference file 'ColorChecker.cht'
Creating diagnostic tiff file 'diag.tif'
About to allocate scanrd_ object
Verbosity = 2, flags = 0x42a01
About to read input tiff file and discover groups
adivval = 1.000000
About to calculate edge lines
379 useful edges out of 482
About to calculate rotation
Mean angle = -0.220790
Standard deviation = 1.164465
Robust mean angle = -0.189701 from 356 lines
About to calculate feature information
About to read reference feature information
Read of chart reference file succeeded
About to match features
Checking xx
Checking yy
Checking xy
Checking yx
Checking xix
Checking yiy
Checking xiy
Checking yix
Axis matches for each possible orientation:
0: xx = 0.320776, yy = 0.306004, xx.sc = 0.134631, yy.sc = 0.135603
90: xiy = 0.225432, yx = 0.351580, xiy.sc = 0.389820, yx.sc = 0.088742
180: xix = 0.301947, yiy = 0.347327, xix.sc = 0.134340, yiy.sc = 0.134642
270: xy = 0.224873, yix = 0.351576, xy.sc = 0.257560, yix.sc = 0.088742
r0 = 0.440145, r90 = 0.095076, r180 = 0.459195, r270 = 0.143794
There are 2 candidate rotations:
cc = 0.440145, irot = -0.189701, xoff = -49.567580, yoff = -74.423086, xscale = 7.427721, yscale = 7.374475
cc = 0.459195, irot = 179.810299, xoff = -2416.435540, yoff = -1602.952441, xscale = 7.443805, yscale = 7.427127
About to compute match transform for rotation -0.189701 deg.
About to setup value scanrdg boxes
About to read raster values
About to compute expected value correlation
About to compute match transform for rotation 179.810299 deg.
About to setup value scanrdg boxes
About to read raster values
About to compute expected value correlation
Expected value distance values are:
0, rot -0.189701: 2410.510929
1, rot 179.810299: 3842.704025
Chosen rotation -0.189701 deg. as best
About to compute final match transform
Improve match
About to setup value scanrdg boxes
About to read raster values
About to write diag file
Writing output values to file 'target.ti3'


KT-Laptop-3:Debug kirkt$ dcamprof make-profile target.ti3 profile.json
Reading target and generating values for the calibration illuminant D50...
Re-generating target reference XYZ values for illuminant D50...
Making camera profile...
Finding a camera raw RGB to CIE XYZ matrix for illuminant D50...
Whitest patch in target differs DE 1.18 from calibration illuminant,
close enough to calculate whitepoint preservation.
Inverting to get ColorMatrix:
{
"ColorMatrix1": [
[ 0.729155, -0.155578, -0.066452 ],
[ -0.482378, 1.364639, 0.172933 ],
[ -0.111882, 0.237018, 0.685179 ]
]
}
Matrix patch match average DE 1.38, DE LCh 0.61 0.63 0.97
mean DE 1.24, DE LCh 0.50 0.51 0.69
p90 DE 2.32, DE LCh 1.28 1.15 1.90
max DE 4.06, DE LCh 1.92 1.90 3.94
ColorMatrix optimal white balance for target: 0.478142,1,0.660402
Using previously calculated RGB to XYZ D50 matrix.
Applying white-balance to get ForwardMatrix:
{
"ForwardMatrix1": [
[ 0.738497, 0.156947, 0.072765 ],
[ 0.257033, 0.850257, -0.107290 ],
[ 0.031675, -0.268494, 1.049609 ]
]
}
Matrix patch match average DE 1.58, DE LCh 0.96 0.59 0.98
mean DE 1.48, DE LCh 0.91 0.60 0.69
p90 DE 2.58, DE LCh 1.83 1.05 1.91
max DE 4.23, DE LCh 2.40 1.78 3.95
ForwardMatrix optimal white balance for target: 0.478142,1,0.660402
Making 2.5D chromaticity-addressed lookup table for XYZ correction...
25.00% of the patches was put in a chromaticity group due to nearby neighbor.
Largest chromaticity group contains 6 patches. Patch count reduced from
24 to 18. Note that patch matching cannot reach 100% when chromaticity
groups are formed, as the LUT matches the average within a group.
Native LUT patch match average DE 0.37, DE LCh 0.14 0.15 0.23
mean DE 0.00, DE LCh 0.00 0.00 0.00
p90 DE 1.21, DE LCh 0.48 0.60 0.81
max DE 1.89, DE LCh 1.19 0.95 1.80
5 worst patches for Overall DE:
0 RGB 0.077 0.106 0.054 => XYZ 0.127 0.111 0.055 (0.130 0.114 0.054) DE 1.89 DE LCh 0.57 0.04 1.80 (dark brown)
18 RGB 0.484 1.000 0.652 => XYZ 0.965 1.000 0.779 (0.948 0.978 0.773) DE 1.40 DE LCh 0.48 0.95 0.90 (white)
23 RGB 0.019 0.041 0.027 => XYZ 0.034 0.035 0.029 (0.039 0.040 0.033) DE 1.21 DE LCh 1.19 0.23 0.05 (gray 20%)
20 RGB 0.194 0.408 0.267 => XYZ 0.380 0.394 0.320 (0.382 0.398 0.318) DE 1.02 DE LCh 0.19 0.89 0.46 (gray 70%)
22 RGB 0.048 0.103 0.068 => XYZ 0.094 0.098 0.081 (0.096 0.101 0.082) DE 1.02 DE LCh 0.42 0.60 0.71 (gray 40%)
5 worst patches for Lightness DE:
23 RGB 0.019 0.041 0.027 => XYZ 0.034 0.035 0.029 (0.039 0.040 0.033) DE 1.21 DE LCh 1.19 0.23 0.05 (gray 20%)
0 RGB 0.077 0.106 0.054 => XYZ 0.127 0.111 0.055 (0.130 0.114 0.054) DE 1.89 DE LCh 0.57 0.04 1.80 (dark brown)
18 RGB 0.484 1.000 0.652 => XYZ 0.965 1.000 0.779 (0.948 0.978 0.773) DE 1.40 DE LCh 0.48 0.95 0.90 (white)
22 RGB 0.048 0.103 0.068 => XYZ 0.094 0.098 0.081 (0.096 0.101 0.082) DE 1.02 DE LCh 0.42 0.60 0.71 (gray 40%)
19 RGB 0.319 0.671 0.440 => XYZ 0.622 0.645 0.521 (0.628 0.654 0.525) DE 0.64 DE LCh 0.28 0.58 0.03 (gray 80%)
5 worst patches for Chroma DE:
18 RGB 0.484 1.000 0.652 => XYZ 0.965 1.000 0.779 (0.948 0.978 0.773) DE 1.40 DE LCh 0.48 0.95 0.90 (white)
20 RGB 0.194 0.408 0.267 => XYZ 0.380 0.394 0.320 (0.382 0.398 0.318) DE 1.02 DE LCh 0.19 0.89 0.46 (gray 70%)
22 RGB 0.048 0.103 0.068 => XYZ 0.094 0.098 0.081 (0.096 0.101 0.082) DE 1.02 DE LCh 0.42 0.60 0.71 (gray 40%)
19 RGB 0.319 0.671 0.440 => XYZ 0.622 0.645 0.521 (0.628 0.654 0.525) DE 0.64 DE LCh 0.28 0.58 0.03 (gray 80%)
21 RGB 0.102 0.215 0.141 => XYZ 0.202 0.210 0.171 (0.202 0.210 0.168) DE 0.78 DE LCh 0.06 0.32 0.71 (gray 50%)
5 worst patches for Hue DE:
0 RGB 0.077 0.106 0.054 => XYZ 0.127 0.111 0.055 (0.130 0.114 0.054) DE 1.89 DE LCh 0.57 0.04 1.80 (dark brown)
18 RGB 0.484 1.000 0.652 => XYZ 0.965 1.000 0.779 (0.948 0.978 0.773) DE 1.40 DE LCh 0.48 0.95 0.90 (white)
1 RGB 0.253 0.363 0.201 => XYZ 0.424 0.382 0.204 (0.422 0.378 0.206) DE 0.84 DE LCh 0.22 0.03 0.81 (red)
21 RGB 0.102 0.215 0.141 => XYZ 0.202 0.210 0.171 (0.202 0.210 0.168) DE 0.78 DE LCh 0.06 0.32 0.71 (gray 50%)
22 RGB 0.048 0.103 0.068 => XYZ 0.094 0.098 0.081 (0.096 0.101 0.082) DE 1.02 DE LCh 0.42 0.60 0.71 (gray 40%)
5 best patches for Overall DE:
16 RGB 0.187 0.186 0.183 => XYZ 0.325 0.223 0.259 (0.325 0.223 0.259) DE 0.00 DE LCh 0.00 0.00 0.00 (purple-red)
3 RGB 0.071 0.154 0.065 => XYZ 0.123 0.141 0.056 (0.123 0.141 0.056) DE 0.00 DE LCh 0.00 0.00 0.00 (yellow-green)
2 RGB 0.089 0.249 0.219 => XYZ 0.189 0.211 0.284 (0.189 0.211 0.284) DE 0.00 DE LCh 0.00 0.00 0.00 (purple-blue)
14 RGB 0.152 0.093 0.045 => XYZ 0.224 0.134 0.041 (0.224 0.134 0.041) DE 0.00 DE LCh 0.00 0.00 0.00 (red)
9 RGB 0.048 0.078 0.084 => XYZ 0.090 0.073 0.117 (0.090 0.073 0.117) DE 0.00 DE LCh 0.00 0.00 0.00 (dark purple)
Writing output to "profile.json"...
Complete!

dcamprof make-dcp -c "Canon EOS 5D Mark II" profile.json testprofile.dcp


然后于Color选项的color management的input profile中选择custom加载即可。
未应用DCP配置文件:
附件:
before.png
before.png [ 1.02 MiB | 被浏览 946 次 ]


应用之后(颜色和色温改善很多):
附件:
after.png
after.png [ 1.04 MiB | 被浏览 946 次 ]



最后由 243750496 编辑于 2017-05-15 11:22,总共编辑了 5 次

页首
 用户资料  
 
373 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-05-14 15:13 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
I hail from back in the day when building a profiling target from scratch was a laborious task, involving entering RGB or CMYK numbers by hand into a spreadsheet . When ProfileMaker 5 came out with its own target generator, I thought, "There's a skill set I'll never be called on to use again." Little did I know. There has continued to be and still continues to be a need for manipulating these text-delimited "CGATS-style" text files and getting into the guts of them to see what's going on. The long-awaited flagship product from X-Rite, i1Profiler, allows for several different file types to be used to save and load color lists as needed. Fortunately they have provided support for the more common text files to allow the average person to create and edit their own lists of colors and use them in their software.
In this article, I want to present you with a starting primer for how to build and work with color lists in the form of tab-delimited text files. This is not as daunting as it sounds. Even if you have never done any computer programing, I'll try to make this fairly easy to pick up and understand.
I suppose if I'm going to ask you to wade through a more technical article that you're used to with the CHROMiX ColorNews, I had better start out with a compelling list of benefits for you to do so! Once you know your way around how these color files are put together, you can:
Create a list of Lab spot colors that you want to compare and analyze to see how they work in your printing system. These could be Pantone colors or other spot colors that you or your client are particularly interested in. A color list brought into a program like ColorThink will tell you quickly whether the colors are in or out of gamut for your printer.
Go beyond the limits of the target generator in your profiling software to make a profiling target with *fewer* patches. Why? Perhaps you don't need a profiling target, but a customized "quality verification" target which contains the key colors that your company is interested in keeping an eye on. This would never be used to create a profile, but is a great way to fit the patches you want into a small space that you can print out once in a while to verify that your colors are consistent. I have used this with great benefit in a company that mostly produced 4x6 RGB prints and needed a daily "control strip" of specific colors that fit onto this small space.
Move patches around in a target. It might be very useful to have a row of your primary colors in a certain place on your profiling target. Having a few K-only patches down in a corner makes it easy to verify whether color management was left on when printing the target. Just knowing how to do simple edits like this is very useful.
Become a better troubleshooter. Say you are trying to regenerate a profile with an older measurement file, and your profiling software gives you a message that says "invalid file." Once you get to a certain point in your knowledge of color management, you're going to want to do more than merely fire off a tech support email to the software manufacturer and wait for an answer. A better solution is to find a workaround quickly to allow you to get your job done. Many error messages are attributed to problems in measurement files which are tab-delimited text files.
Create unusually shaped targets. If you wanted to profile the face of a CD or DVD for example, you would need a round target with a hole in the middle rather than the usual rectangular target. It is possible to do this if you know how to edit reference and measurement files.
Contents [hide]
1 So what's a "CGATS tab-delimited text file"?
1.1 Reference Files
1.2 Measurement Files
2 Examples
3 Excel
4 Applications / Programs
4.1 ColorPort
4.2 MeasureTool
4.3 basICColor print
4.4 i1Profiler
4.5 Curve2
4.6 ColorThink Pro
So what's a "CGATS tab-delimited text file"?

This is a simple text file (with a .txt extension) which contains table-based information that uses tabs to separate the different columns of information. You can create and use these files with a simple text editor (like Notepad in Windows or TextEdit in Mac) - but it sometimes turns out to be easier to work these tables out in a spreadsheet program like Excel, and then output them as tab-delimited text.
CGATS is the organization that rolled this exchange format into a standard (CGATS.17-2009) which has been widely adopted in the color industry. Sometimes people refer to any tab-delineated text files as CGATS files, but doing so could be a bit confusing, for the CGATS.17 standard also covers .xml files.
All CGATS-style tab-delineated text files will start at the top with a few rows of "header" information: Explanatory information defining the terms that will be used, and other necessary information. The last line of the header information is: "BEGIN_DATA" (minus the quotes). The only "footer" required is a final line at the bottom which reads "END_DATA".
Reference Files
In between BEGIN_DATA and END_DATA is the table containing all of your patch color information. For a reference file, you would see RGB data if this were an RGB color list (used for monitor profiles or driver-based printing) with numbers between 0 and 255. A CMYK reference will contain CMYK columns running from 0 to 100.
Measurement Files
A measurement file will contain columns of Lab, XYZ or other flavors of information. It might also contain 32 bands of spectral information - which represent the actual bands of color that was measured by the spectrophotometer. These days, measurement files generally contain the reference information columns too, so that the same file can act as both the reference and the measurement.
Examples

But let's start it out nice and simple. Here's a small color list of Lab values that you could type out in about a minute. Just remember to separate the different "words" by hitting the tab key, not the spacebar.


Example of a simple Lab color list in ColorThink Worksheet.
BEGIN_DATA_FORMAT
Lab_L Lab_a Lab_b
END_DATA_FORMAT
BEGIN_DATA
91 -2 96
44 -29 2
END_DATA

click to download this Lab file
This will give you a 2-patch color list containing a yellow and a green patch. This is easily imported into ColorThink 2 or ColorThink Pro, where you can, for example, transform these values through a profile or view them in the Grapher. Of course, you can take this as a template and substitute your own Lab values and make the list as long as you like.
Oftentimes, color lists contain a leftmost column which numbers the items in the list, and also a column next to it which represents the name of the patch.
Some software have different requirements in the header that they are looking for in order to accept a file. You can easily figure out what's needed by saving out a sample file and opening it in a text editor to see what's in the header.
For example, here's a file that would work as a basic RGB reference file for i1Profiler. Type - or copy and paste the following:


Example of an RGB reference file loaded into i1Profiler patch generator.
KEYWORD "SampleID"
KEYWORD "SAMPLE_NAME"
NUMBER_OF_FIELDS 5
BEGIN_DATA_FORMAT
SampleID SAMPLE_NAME RGB_R RGB_G RGB_B
END_DATA_FORMAT
NUMBER_OF_SETS 3
BEGIN_DATA
1 red 250 50 50
2 white 251 252 253
3 blue 30 30 180
END_DATA

click to download this RGB file
You will have the start of an RGB reference list which can easily import into ColorThink 2 or Pro, or into i1Profiler as an RGB patch set.
Excel

A text editor is easily managed, but does not allow you to add/delete entire columns or sort data. So a spreadsheet program like Excel is a much better way to sort columns of data, rearrange data from one part of the color list to another, or eliminate or add entire rows. Don't have Excel? Google docs offers a simple spreadsheet program as well, and it's free.
Sometimes, you can open a text file directly into Excel and it will automatically walk you through a few questions relating to how you want the data parsed out into columns and rows. If you find that Excel does not accept a color list file directly, open a blank worksheet and, from the menu bar, choose: Data > Get external data... Here you can browse to and select the text file you want to get - and Excel will open it into your worksheet.
Some of the useful functions of Excel would be: Using the sort function to identify the location of specific patches in a long color list. If you decide you don't need XYZ data in a measurement file, you can easily delete those columns and edit the header information accordingly. Bringing a file into Excel will strip away any quotation marks that surround the color name, and then you can save this cleaner version out of Excel again. (Some programs won't accept a tab-delimited file that contains quotation marks.)


Saving a file from Excel to be a text-delimited tab file.
To save the file out of Excel back into the tab-delimited file that will open properly in all these programs, choose:
File > Save As...,
Give the file a name, and choose the Format as "Text (Tab delimited)", and
Choose Save.
If you wish to immediately open this color list into another program, you will need to close out of the file in Excel, in order to allow it to be available to other programs.
So far I have been talking about reference files, required for creating targets. If you're also involved in measuring colors, you'll find that measurement files take different forms depending on what application you are using.


页首
 用户资料  
 
374 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-05-14 20:36 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
在Linux中執行.sh腳本
異常/bin/sh^M: bad interpreter: No such file or directory

分析:
這是不同系統編碼格式引起的:在windows系統中編輯的.sh文件可能有不可見字符,所以在Linux系統下執行會報以上異常信息。

解決:

1)在windows下轉換:
利用一些編輯器如UltraEdit或EditPlus等工具先將腳本編碼轉換,再放到Linux中執行。
轉換方式如下(UltraEdit):File-->Conversions-->DOS->UNIX即可

2)也可在Linux中轉換:
首先要確保文件有可執行權限
chmod a+x filename

然後修改文件格式
vi filename

利用如下命令查看文件格式
:set ff 或 :set fileformat

可以看到如下信息
fileformat=dos 或 fileformat=unix

利用如下命令修改文件格式
:set ff=unix 或 :set fileformat=unix

:wq (存檔退出)

最後再執行文件
./filename


bash: ./configure: /bin/bash^M: bad interpreter: No such file or directory
atc@ATC:~/Downloads/SampleICC-1.6.10$ sed -i -e 's/\r$//' configure
https://github.com/Fimagena/raw2dng
http://www.ludd.ltu.se/~torger/dcamprof.html


页首
 用户资料  
 
375 楼 
 文章标题 : Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)
帖子发表于 : 2017-05-15 19:04 

注册: 2012-06-09 15:40
帖子: 993
送出感谢: 0 次
接收感谢: 7
对krita和gnome-tweak-tool进行相关设置,以防止快捷键冲突
附件:
super.png
super.png [ 54.54 KiB | 被浏览 934 次 ]


附件:
to none.png
to none.png [ 115.22 KiB | 被浏览 934 次 ]


win10 上的色彩管理请按照如图所示输入
打开Control Panel -> System and Security -> System -> Advanced system settings -> Environment Variables -> System varriables -> Path -> 添加
%SYSTEMROOT%\Argyll_V1.9.2\bin
附件:
argullcms.jpg
argullcms.jpg [ 578.67 KiB | 被浏览 825 次 ]


然后设置Control Panel -> Pen and touch -> Press and hold -> 取消勾选
附件:
pen.jpg
pen.jpg [ 592.26 KiB | 被浏览 825 次 ]


注意:此处使用的是boogie board sync 需要安装Sync VDC 并开启digitizer模式(比wacom好用)
然后对gimp进行设置使其不显示鼠标图标:Edit -> Preference -> Image Window -> Show pointer for paint tools ->取消勾选
附件:
gimp.jpg
gimp.jpg [ 793.58 KiB | 被浏览 825 次 ]


windows10上可以装
PS + Krita + Uget + Blender + Scribus + gimp + Rawtherapee + PureVPN + Steam + iTunes + Office + Libreoffice + QQ + Wechat + 百度网盘 + DisplayCal +

另外如果闲显示不清晰,可以对以下进行设置:
开始菜单 -> 小齿轮 -> System -> Display -> Scale and layout设置第一项为100%

另外一点在DisplayCal 校色时请把Display下的自动亮度给关闭以维持一个固定值另外Night light也要关闭

Gimp填充快捷键冲突解决办法
安装QQ 拼音,卸载搜狗输入法 (因为搜狗输入法自身设置与gimp快捷键冲突但却无法修改 所以请卸载)
然后在Control Panel -> Clock Language and Region -> Language -> Advanced Settings -> Change language bar hot keys -> Advanced Key Settings -> Between input languages -> Switch Input Language 设置为Ctrl+Shift && Switch Keyboard Layout 设置为Not Assigned
附件:
gimp conflicted.jpg
gimp conflicted.jpg [ 431.54 KiB | 被浏览 707 次 ]


从官方下载help的exe安装包后如果是GB(Globle版)需要将
C:\Program Files\GIMP 2\share\gimp\2.0\help文件夹下的en-GB改为en即可然后在
gimp的
Edit -> Preference -> Help System -> General -> User Manual设置为 Use a locally installed copy即可
附件:
gimp help.jpg
gimp help.jpg [ 609.58 KiB | 被浏览 647 次 ]



最后由 243750496 编辑于 2017-07-28 16:05,总共编辑了 1 次

页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 420 篇帖子 ]  前往页数 上一页  1 ... 22, 23, 24, 25, 26, 27, 28  下一页

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译